Ajouter 'python.md'

This commit is contained in:
vincent 2019-04-26 09:42:41 +02:00
parent de6f763159
commit 074659a2df

8
python.md Normal file
View File

@ -0,0 +1,8 @@
# python
## Virtual env
- create virtual env: `python3 -m venv /path`
- enter in virtual env: `source env/bin/activate`
- leave venv: `deactivate`
- list all installed package in file: `pip freeze > requirement.txt`
- install package list in file: `pip install -r requirement.txt`