Install dependencies using pip from requirement.txt file in Python

pip install -r requirements.txt

The command can be used to install all dependencies which are required to run your python application. The dependencies must be in the requirement.txt file. To generate a requirement.txt file you can use below command

pip freeze > requirements.txt
Was this helpful?