Create a virtual environment python3 -m venv venv Switch to that environment source venv/bin/activate