Unable to install using pip install requirements.txt

PythonPython 2.7Piprequirements.txt

Python Problem Overview


I'm trying to install BitTornado for Python 2.7 using requirements.txt, I get the following error:

Collecting requirements.txt
  Could not find a version that satisfies the requirement requirements.txt (from versions: )
No matching distribution found for requirements.txt

Here is my code in requirements.txt:

-e git+https://github.com/effigies/BitTornado.git#egg=python2.7

I also tried -e git+https://github.com/effigies/[email protected] but still not working. Does someone know why is this happening?

Note: "python2.7" is the branch name

Thanks in Advance

Python Solutions


Solution 1 - Python

The correct command is pip install -r requirements.txt. Note the -r option; without it, pip thinks you want to install a package named requirements.txt, which doesn't exist.

Solution 2 - Python

You forgot to add -r switch to specify that requirements.txt is the file with your dependencies.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAvdhesh ParasharView Question on Stackoverflow
Solution 1 - PythonjwodderView Answer on Stackoverflow
Solution 2 - Pythonmic4aelView Answer on Stackoverflow