Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install using pip install requirements.txt [closed]

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

like image 406
Avdhesh Parashar Avatar asked Mar 18 '17 16:03

Avdhesh Parashar


People also ask

Why is pip install not working in Python?

One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot find the tool you're trying to run in your current directory. In most cases, you'll need to navigate to the directory in which the tool is installed before you can run the command to launch it.

What is Requirements txt in pip?

Requirements files serve as a list of items to be installed by pip, when using pip install. Files that use this format are often called “pip requirements. txt files”, since requirements. txt is usually what these files are named (although, that is not a requirement).

Where is pip requirements txt?

Typically the requirements. txt file is located in the root directory of your project. Notice we have a line for each package, then a version number. This is important because as you start developing your python applications, you will develop the application with specific versions of the packages in mind.


1 Answers

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.

like image 59
jwodder Avatar answered Oct 07 '22 18:10

jwodder