[Solved] Pip freeze –local


Pip is a package manger for Python modules. The command pip freeze outputs all installed modules (including version numbers). The --local flag prevents Pip from printing globally installed packages in a virtual environment.

Usually, a Python program depends on other modules. You can put those required modules in a text file (requirements.txt by convention) so that other people can install those dependencies by running pip install -r requirements.txt. You can conveniently create such a file using pip freeze.

On a Linux machine, cat is used to output the contents of a file. You can use type on Windows.

The requirements format looks like this:

docutils==0.11
Jinja2==2.7.2
MarkupSafe==0.19
Pygments==1.6
Sphinx==1.2.2

Each lines consist of a python module name and a corresponding version.


https://pip.pypa.io/en/stable/reference/pip_freeze/
https://pip.readthedocs.io/en/1.1/requirements.html

1

solved Pip freeze –local