Last active
January 8, 2022 04:31
-
-
Save cuent/e22eff7b6061a614b7f16eeee7eceeca to your computer and use it in GitHub Desktop.
Create virtual environment in Python
This file contains hidden or 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
| # 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