-
Create a virtualenv
py -m venv venv
-
Activate
venv\Scripts\activate
-
Create requirements.txt
env/bin/pip freeze > requirements.txt # install the requirements to another env py -m venv venv2 env2/bin/pip install -r requirements.txt
-
Deactive the virtual env
deactivate
-
-
Save george-593/0fbac144047967a6ae74181c38a49ca7 to your computer and use it in GitHub Desktop.
Python Virtualenv Cheatsheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment