Skip to content

venv

prerequisites

make sure you've...

  • installed python

    sudo apt install -y python3-pip
    
    sudo pacman -S --noconfirm python-pip libffi
    

make sure you've...

  • installed python

    winget install -eh --Python.Launcher
    winget install -eh --Python.Python.$VERSION # (1)!
    
    1. $VERSION is the most recent python release (e.g. 3.12)

creating a venv

make sure you've...

python -m venv .venv --update-deps

activating a venv

make sure you've...

source .venv/Scripts/activate
.\.venv\Scripts\Activate.ps1

deactivating a venv

make sure you've...

deactivate

resources