How do I update a Python package?

后端 未结 12 2259
半阙折子戏
半阙折子戏 2020-11-29 15:47

I\'m running Ubuntu 9:10 and a package called M2Crypto is installed (version is 0.19.1). I need to download, build and install the latest version of the M2Crypto package (0.

12条回答
  •  猫巷女王i
    2020-11-29 16:00

    Use pipupgrade!

    $ pip install pipupgrade
    $ pipupgrade --latest --interactive
    

    pipupgrade helps you upgrade your system, local or packages from a requirements.txt file! It also selectively upgrades packages that don't break change. Compatible with Python2.7+, Python3.4+ and pip9+, pip10+, pip18+.

    NOTE: I'm the author of the tool.

提交回复
热议问题