python pip trouble installing from requirements.txt

前端 未结 6 2069
清酒与你
清酒与你 2020-12-13 00:12

I\'ve had great luck with pip in the past, but working at installing some stuff in a venv on is giving me some headaches. I keep getting errors like No distributions at

6条回答
  •  春和景丽
    2020-12-13 00:42

    I had this problem but with a different cause - I had an old version of virtualenv. Before version 1.7 you had to specify the option --no-site-packages when you create the virtual environment to not include global packages.

    Two options to fix this, either upgrade your virtualenv:

    sudo pip install virtualenv --upgrade
    virtualenv venv
    

    Or use the old one with the no-site-packages option:

    virtualenv venv --no-site-packages
    

    That fixed my requirements.txt file.

提交回复
热议问题