How to install from requirements.txt [duplicate]

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)