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
pip
version
python3 -m pip install --upgrade pip
python3 -m pip --version
- Deactivate the environment
deactivate
Package Installations
python3 -m pip install <package>