If you see this error with pip3 install
:
error: externally-managed-environment
-
Make the config directory:
mkdir -p ~/.config/pip
-
Create and edit
pip.conf
:touch ~/.config/pip/pip.conf subl ~/.config/pip/pip.conf
-
Add this:
[global] break-system-packages = true
-
Save the file and verify: Run the following command:
pip config list
What you should see:
global.break-system-packages = true
-
Install your package:
pip3 install pandas
Done!
By ChatGPT + Dhrumil