mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
Add virtualenv
This commit is contained in:
parent
49e1fc46f4
commit
c0d755e102
1 changed files with 15 additions and 0 deletions
15
cheat/cheatsheets/virtualenv
Normal file
15
cheat/cheatsheets/virtualenv
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Create new environment
|
||||
virtualenv /path/to/project/env_name
|
||||
|
||||
# Create new environment and inherit already installed Python libraries
|
||||
virtualenv --system-site-package /path/to/project/env_name
|
||||
|
||||
# Create new environment with a given Python interpreter
|
||||
virtualenv /path/to/project/env_name -p /usr/bin/python/3.4
|
||||
|
||||
# Activate environnment
|
||||
source /path/to/project/env_name/bin/activate
|
||||
|
||||
# Quit environment
|
||||
deactivate
|
||||
|
Loading…
Reference in a new issue