| GENERAL | |
|---|---|
| python --version | Show Python version |
| python script.py | Run script |
| pip install package | Install a package |
Python
Python is an interpreted high-level general-purpose programming language
| Virtualenv | |
|---|---|
| python -m venv venv | Create virtual environment |
| source venv/bin/activate | Activate venv (Unix) |
| venv\Scripts\activate | Activate venv (Windows) |
| pip freeze > requirements.txt | Export dependencies |
| pip install -r requirements.txt | Install from file |