mirror of
https://github.com/michivonah/python.git
synced 2025-12-22 20:46:29 +01:00
496 B
496 B
Virtual python environments
Advantages of venvs
- No mix of dependencies from different projects
- No mix up of system modules (macOS/Linux where Python comes preinstalled & is used by the OS)
Create new python venv
macOS/Linux:
python3 -m venv venv/
Windows:
py -m venv venv\
Activate venv
macOS/Linux:
source venv/bin/activate
Windows:
venv\Scripts\activate
Deactivate venv
All operating systems:
deactivate