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