PlainError

Python Package Installation Blocked

Last checked 2026-10-16 · 3 fixes · AI-drafted, auto-reviewed · how we write fixes

TL;DRThis error appears when trying to install Python packages directly into the main system Python, which modern versions protect to avoid breaking other programs.

Most likely cause: Attempting to install packages system-wide without using a virtual environment

Try first: Create a virtual environment (python -m venv myproject)

Likely causes

  1. Attempting to install packages system-wide without using a virtual environmentmost likely
  2. Using an older pip command on a newer Python installation that enforces environment isolationpossible

How to fix it

Safest first: SafeChanges settingsDangerous
  1. Create a virtual environmentSafe

    Set up an isolated space for your project packages so the system Python stays untouched.

    python -m venv myproject
  2. Activate the virtual environmentSafe

    Switch to the isolated environment before installing packages.

    source myproject/bin/activate
  3. Install packages inside the environmentSafe

    Run pip install only after activation so packages go into the safe isolated space.

    pip install package-name

If that didn't fix it

Package installation will continue to fail and you will not be able to add the needed Python libraries to your project.

When to see a technician

If you are not comfortable running command-line tools or managing Python environments, consult a software developer.

Did this fix it? Report a problem

Related errors

All Coding errors →