Python
Warning
Commands listed on this page only apply for Unix/MacOS systems.
Virtual Environments
Official docs.
- Open a project directory
- Create a virtual environment
python3 -m venv .venv- Active the environment
source .venv/bin/activate- Upgrade and check
pipversion
python3 -m pip install --upgrade pip
python3 -m pip --version- Deactivate the environment
deactivatePackage Installations
python3 -m pip install <package>