Getting the 'python error: externally-managed-environment' – How to Fix and Work Around It?

18 Replies, 1613 Views

Hey! I ran into the same python error: externally-managed-environment recently. It’s super annoying, right? πŸ˜…

What worked for me was using a virtual environment. Just run:
```bash
python -m venv myenv
source myenv/bin/activate
```
Then install your package with pip. This way, you avoid messing with the system packages.

If you’re not familiar with venv, check out the official Python docs. They explain it really well!

Messages In This Thread



Users browsing this thread: 1 Guest(s)