Python Error Installing Requirements.txt Using Pip Install

This quick article will be show you how to solve error during pip install of requirements.txt:

pip install requirements.txt

and the error:

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

The errors is caused by incorrect syntax for the install command. The correct pip install command for installing requirement files is:

pip install -r requirements.txt

If the -r option is skipped pip will try to install package requirements.txt.

If you work with requirement files then the option should be added. From the official docs:

-r, --requirement Install from the given requirements file. This option can be used multiple times.

More info can be found at this link: Pip Requirements Files

Share Tweet Send
0 Comments
Loading...
You've successfully subscribed to SoftHints - Python, Data Science and Linux Tutorials
Great! Next, complete checkout for full access to SoftHints - Python, Data Science and Linux Tutorials
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.