create requirements.txt python

51

pip freeze requirements.txt -

// capture requirements to install
pip freeze > requirements.txt

// install requirements from requirements.txt
pip install -r requirements.txt

// or
$ env1/bin/pip freeze > requirements.txt
$ env2/bin/pip install -r requirements.txt

auto create requirements.txt -

pip3 freeze > requirements.txt  # Python3
pip freeze > requirements.txt  # Python2

Comments

Submit
0 Comments