2 Upvotes

Working with Python venv in Terminal

Terminal
Environments

#CREATING ENVIRONMENT

Python3 -m venv my_env

#ACTIVATING ENVIRONMENT

source my_env/bin/activate

#EXPORT REQUIREMENTS.TXT FOR ENVIRONMENT

pip freeze > requirements.txt



By GregHe1979 - Last Updated Jan. 8, 2022, 6:10 p.m.

Did you find this snippet useful?

Sign up to bookmark this in your snippet library

COMMENTS
RELATED SNIPPETS
2
Top Contributors
75