Pip and install aren't working how do I fix?

January 28, 2025, 13:56

herojesse

So I'm working on raspberry pi 4 for the first time and it's my first time working with Linux and python. For the project I'm working I need to download many different things and every tutorial uses the pip command. the problem When I go to use the pip command I get a bunch of shit about APT and I've tried so many different things to fix this such as installing pip through apt commands. I also get a bunch of errors saying install is not defined I'm just lost and I have many other questions but I want to solve one problem at a time and this seems to be my biggest issue at the moment anyone have any pointers?

thunder07337

Which command did you try to install pip with?

herojesse

Something along the lines of sudo apt install python-pip It just told me I already had installed then I went to use and it still didn't work

thunder07337

sudo apt install python3-pip
This is the latest version. If you do not enter 3, an outdated version will be installed. https://pimylifeup.com/raspberry-pi-pip/

herojesse

I got same message I did yesterday just saying it's already at its newest version

thunder07337

pip --version
?

herojesse

Pip 23.0.1

thunder07337

python --version
?

herojesse

3.11.2

thunder07337

With which pip command did you get an error? And what was the error? Send a picture if you can't copy the text.

herojesse

I've done this with things other than opencv as well (sorry not a screenshot I'm not sure how to do that yet)

herojesse

I've also tried the command it tells me to use I don't know if I'm doing it wrong but it usually doesn't work just says the thing I'm trying to install doesn't exist or something else I can't remember off the top of my head

thunder07337

Yes, pip works differently. As I don't use it personally, I would advise you to visit the recommended website and find out how to do it properly. http://rptl.io/venv

herojesse

Alright I'll try this out thank you with the help so far

oops.se

The solution and an description is in this FAQ https://discord.com/channels/818384379197784084/1217798894985941072

oops.se

And to follow up, this was introduced in "Debian 12 Bookworm"