mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
Add virtualenv
This commit is contained in:
parent
49e1fc46f4
commit
c0d755e102
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 New Issue
Block a user