Installing specific package versions with pip

前端 未结 11 757
借酒劲吻你
借酒劲吻你 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:51

    To install a specific python package version whether it is the first time, an upgrade or a downgrade use:

    pip install --force-reinstall MySQL_python==1.2.4
    

    MySQL_python version 1.2.2 is not available so I used a different version. To view all available package versions from an index exclude the version:

    pip install MySQL_python==
    

提交回复
热议问题