Pipreqeqgen is a Python-based tool that automatically generates a requirements.txt file for a given Python or Jupyter notebook file.
- Extracts imports from a Python or Jupyter notebook file.
- Fetches the current version of each imported module.
- Generates a
requirements.txtfile with the module names and their corresponding versions.
To install Pipreqgen, you can use pip:
pip install pipreqgenIf you want to install the latest development version, you can clone the repository and run the setup.py file: