This script checks which packages listed in a requirements file are currently installed on your system.
The script reads a requirements file, compares its contents with the packages installed in your Python environment, and prints a list of packages that are installed (including installed versions). It helps ensure that all necessary dependencies are installed for your project or just filters out installed versions for larger projects for example.
Helps to list the version of each installed package that you use in your requirements file.
- Python 3
The script can be run from the command line. It requires specifying the path to the requirements file.
python3 pip_list_for_requirement_files.py <requirements_file>
Packages from requirements.txt that are installed:
package1==1.0.0
package2==2.1.0
package3 is installed but version 3.0.0 does not satisfy requirement package3>=3.0.1
package4 is not installed
This project is licensed under the MIT License - see the LICENSE file for details.