Fill these in once
- For a project: make a virtual environment and install there
python3 -m venv .venv source .venv/bin/activate pip install requests - For a command-line tool: use pipx instead
brew install pipx pipx ensurepath pipx install httpieOpen a new terminal after pipx ensurepath.
Check it worked
- Check pip now points inside your project
which pipIt should end in .venv/bin/pip.
- For a project: make a virtual environment and install there
python3 -m venv .venv source .venv/bin/activate pip install requests - For a command-line tool: use pipx insteadNeeds sudo
sudo apt install -y pipx pipx ensurepath pipx install httpieOpen a new terminal after pipx ensurepath.
Check it worked
- Check pip now points inside your project
which pipIt should end in .venv/bin/pip.
This error doesn't happen on Windows. pip install works as usual there.