Skip to content

Instantly share code, notes, and snippets.

@mathsigit
Created September 16, 2020 03:44
Show Gist options
  • Save mathsigit/2d38eafc9474d007c6f68414e5eed2e7 to your computer and use it in GitHub Desktop.
Save mathsigit/2d38eafc9474d007c6f68414e5eed2e7 to your computer and use it in GitHub Desktop.
Command of virtualenv on MacOS

Virtualenv

Commands

Create virtualenv

virtualenv -p ${PYTHON_VERSION} ${ENV_FOLDER_PATH}

#For instance
virtualenv -p python2 /Users/abc/pythonenv_test

Activatting virtualenv

source /Users/abc/pythonenv_test/bin/activate

Deactivating virtualenv

cd /Users/abc/pythonenv_test
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment