Need help: How to install pip in Ubuntu environment correctly? or What’s the best way to install pip

16 Replies, 1314 Views

Hey, I had this exact problem! Here’s what worked for me (Ubuntu 22.04 too):

```
sudo apt update
sudo apt install python3-pip
```

Then verify with `pip3 --version`.

If you’re getting weird errors, maybe your sources.list is borked. Try `sudo apt-get clean` and retry.

Also, +1 to using `apt` over `ensurepip`—it’s just cleaner.

Messages In This Thread



Users browsing this thread: 1 Guest(s)