Install packages into the user site directory.

Section: venv Workflows

Install to user site packages

bash
bash
python -m pip install --user httpie
Explanation

Helpful when you cannot write to system site-packages. Avoid inside a venv.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing venv Workflows
Install requirements into an active venv
Install project dependencies after activation.
OpenIn sheetbashsame section
Install despite externally managed environment
Override system package management protections when necessary.
OpenIn sheetbashsame section
Create venv and install packages
Typical Unix-like local development flow.
OpenIn sheetbashsame section
Use pip with a specific Python version
Install into Python 3.11 specifically.
OpenIn sheetbash1 tag match
Use pip with Python 3 explicitly
Install a package with a specific interpreter family.
Upgrade pip, setuptools, and wheel
Bootstrap common packaging tools in CI.