error: externally-managed-environment
- Raspberry Pi
- Linux
You may see
Why it happens
- Raspberry Pi OS stops pip from changing the system's Python.
How to fix it
- Make one:
python3 -m venv --system-site-packages ~/pi-env. - Switch it on:
source ~/pi-env/bin/activate. - Run pip install again.
It worked if: The prompt starts with (pi-env) and pip succeeds.
Related errors
Tutorials where it can happen
From the official documentation. From our Pi lesson and the Raspberry Pi documentation. Sources: Raspberry Pi documentation.
Didn't help? Search another error or ask us.

