| Command/text | Notes |
python -m venv myvenv
source myvenv/bin/activate | Creates and activates a virtual environment in the myvenv subfolder of the current directory. Note: you don't have to be in the current directory to activate it. |
uv venv myvenv2
source myvenv2/bin/activate | Create a Python virtual environment via uv. |
deactivate | Deactivate the Python virtual environment |
uv pip install requests | Install the requests module via UV + Pip (can also install wheel files instead of module names) |
uv venv --python 3.12 venv312 | Create a Python virtual environment using Python 3.12 (via uv) |
uv tree | Show a dependency tree for ? |
python --version | Output the current Python version |
python -c 'import requests; print(requests.__path__)' | Will tell you where the requests module is installed |