Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
development:python [2020/03/19 13:04] kalenpw removed |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Python ====== | ||
| - | * [[.python : django | Django]] | ||
| - | ---- | ||
| - | ===== Virtual Environment ===== | ||
| - | <code bash> | ||
| - | # must have virtualenv installed, if not: | ||
| - | sudo pip3 install virtualenv | ||
| - | |||
| - | # create virtualenv | ||
| - | virtualenv venv -p python3 | ||
| - | |||
| - | # active venv | ||
| - | source venv/ | ||
| - | |||
| - | # install dependancies | ||
| - | pip install -r requirements.txt | ||
| - | |||
| - | # dump dependancies | ||
| - | pip freeze > requirements.txt | ||
| - | |||
| - | # to exit | ||
| - | deactivate | ||
| - | </ | ||