Skip to content

Instantly share code, notes, and snippets.

@cuent
Last active January 8, 2022 04:31
Show Gist options
  • Select an option

  • Save cuent/e22eff7b6061a614b7f16eeee7eceeca to your computer and use it in GitHub Desktop.

Select an option

Save cuent/e22eff7b6061a614b7f16eeee7eceeca to your computer and use it in GitHub Desktop.
Create virtual environment in Python
# Installing
## create virtual environment
virtualenv <env_name>
## specify a specific version
virtualenv -p /usr/bin/python2.7 <my_env_name>
# Activate environment
source <env_name>/bin/activate
# Install dependencies
pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment