First, freeze all of your pip
packages in the requirements.txt
file using the command
pip freeze > requirements.txt
This should create the requirements.txt
file in the correct format. Then try installing using the command
pip install -r requirements.txt
Make sure you’re in the same folder as the file when running this command.
If you get some path name instead of the version number in the requirements.txt
file, use this pip command to work around it.
pip list --format=freeze > requirements.txt