Installing specific package versions with pip

前端 未结 11 613
借酒劲吻你
借酒劲吻你 2020-11-22 08:38

I\'m trying to install version 1.2.2 of the MySQL_python adaptor, using a fresh virtualenv created with the --no-site-packages option. The current version shown

11条回答
  •  逝去的感伤
    2020-11-22 08:52

    You can even use a version range with pip install command. Something like this:

    pip install 'stevedore>=1.3.0,<1.4.0'
    

    And if the package is already installed and you want to downgrade it add --force-reinstall like this:

    pip install 'stevedore>=1.3.0,<1.4.0' --force-reinstall
    

提交回复
热议问题