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

16 lines
424 B
Markdown
Raw Normal View History

2019-05-15 18:10:09 +00:00
---
title: python
---
2019-04-26 07:42:41 +00:00
# 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`
2019-05-28 20:48:52 +00:00
## tips
- pprint permet d afficher vos structure de données
- la fonction dir() permet de lister les attribut d un