python pip trouble installing from requirements.txt

前端 未结 6 2070
清酒与你
清酒与你 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:55

    Had a similar issue but the above method didn't work for me. Clarified it with a rather simpler solution:

    (venv) $ pip install --upgrade -r requirements.txt

    UPDATE: This command upgrades all packages that have been explicitly listed in your requirements.txt file.

    Your requirements.txt file is just a list of pip install arguments placed in a file. They are used to hold the result from pip freeze for the purpose of achieving repeatable installations. In this case, your requirements.txt file contains a pinned version of everything that was installed when pip freeze was run.

提交回复
热议问题