Created
April 22, 2019 11:38
-
-
Save Pouya-moh/16b1f9236478355441cda28c60e3cb3c to your computer and use it in GitHub Desktop.
Python virtualenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# creating the env | |
$ virtualenv --no-site-packages -p /path/to/python3 virtualenv_name | |
## --no-site-packages seems to be depricated as said here: | |
## https://virtualenv.pypa.io/en/stable/reference/#cmdoption-no-site-packages | |
## mind PYTHONPATH and pip -E, and to freez system pip: | |
## https://stackoverflow.com/questions/1382925/virtualenv-no-site-packages-and-pip-still-finding-global-packages | |
# activate/de | |
$ source virtualenv_name/bin/activate | |
(virtualenv_name)$ deactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment