How do I update a Python package?

后端 未结 12 2261
半阙折子戏
半阙折子戏 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条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 16:08

    1. Via windows command prompt, run: pip list --outdated You will get the list of outdated packages.
    2. Run: pip install [package] --upgrade It will upgrade the [package] and uninstall the previous version.

    To update pip:

    py -m pip install --upgrade pip
    

    Again, this will uninstall the previous version of pip and will install the latest version of pip.

提交回复
热议问题