Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 711 Bytes

Setup.md

File metadata and controls

52 lines (35 loc) · 711 Bytes

Fix externally-managed-environment Error

If you see this error with pip3 install:

error: externally-managed-environment

Fix:

  1. Make the config directory:

    mkdir -p ~/.config/pip
  2. Create and edit pip.conf:

    touch ~/.config/pip/pip.conf
    subl ~/.config/pip/pip.conf
  3. Add this:

    [global]
    break-system-packages = true
  4. Save the file and verify: Run the following command:

    pip config list

    What you should see:

    global.break-system-packages = true
    
  5. Install your package:

    pip3 install pandas

Done!

By ChatGPT + Dhrumil