Sunday, October 18, 2026

How to install Python Libraries Using 'requirements.txt'?

Open Command Prompt or your terminal, navigate to your project directory containing the requirements.txt file, and execute the following command:

pip install -r requirements.txt

This command automatically installs the Python packages listed in your requirements.txt file.

Your requirements.txt file must contain the packages with version:

legacy-cgi
matplotlib       # not specifying
numpy>=1.21.0    # Minimum version
pandas==1.3.3 pycgi pythoncgi wfastcgi


After installation, Verify the Python Package Installation by run the following command: pip list To check the installed version of a specific package, use: pip show wfastcgi

No comments :