This repository has been archived on 2020-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
readme/python.md
2019-05-28 22:48:52 +02:00

16 lines
424 B
Markdown

---
title: python
---
# 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`
## tips
- pprint permet d afficher vos structure de données
- la fonction dir() permet de lister les attribut d un