Browse Source

Ajouter 'python.md'

master
vincent 2 years ago
parent
commit
074659a2df
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      python.md

+ 8
- 0
python.md 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`