Installing specific package versions with pip

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

    Since this appeared to be a breaking change introduced in version 10 of pip, I downgraded to a compatible version:

    pip install 'pip<10' 
    

    This command tells pip to install a version of the module lower than version 10. Do this in a virutalenv so you don't screw up your site installation of Python.

提交回复
热议问题