RaspBerry doesn't find pip3

Go To StackoverFlow.com

0

I installed Python 3.4 with this website. (I installed it with sudo apt-get python3.4)

IT finished without any problems and if I type:

python --version

I get back:

python 3.4.4

But if I then want to make something with PIP3 it says:

-bash: pip3: command not found

Trying it for pip brings the same.

I need pip3 to install Adafruit-Blinka

What can I do?

I also tryed:sudo apt-get install python-pip This installs normal pip, there seems to be no install for pip3.

Thanks!

2018-11-07 18:12
by Timothy Lukas H.
pip != python likewise, pip3 != python3. pip is a separate tool used to manage libraries for python :) sudo apt-get install python3-pip should solve this - Torxed 2018-11-07 18:16
@Torxed Okey thanks, how can I install pip3 then - Timothy Lukas H. 2018-11-07 18:17


3

sudo apt-get install python3-pip

This should install pip3 for managing Python3 libraries. If you're using rasbian that is.
python-pip is for Python2 if you need that too.

pip and python are two separate entities. There for installing one doesn't necessarily mean the other will be installed.

Some good documentation on the matter can be found at raspberrypi.org

And others have asked the same question on the official forums.

Just remember, most "safe" distro's tend to default to Python2 for their LTS platforms. Meaning you will have to essentially add python3-<lib> (the 3 being the crucial element here) to all your installations. Otherwise you'll most likely get the Python2 equivilant of the library/tool. Like in this case.

Again, I'm using Arch Linux ARM for the most part, so I'm not to familiar with debian/ubuntu/etc distro's for the RPi platform. But that package should be called about the same as in Arch :)

2018-11-07 18:17
by Torxed
Installed it like you mentioned. And then entered: pip3 install RPI.GPIO It didn't report back an error. So it seems it is working now, although the installation doesn't output any code. But will wait a bit. Thank you!

It worked, thanks - Timothy Lukas H. 2018-11-07 18:23

I know this isn't meant for this. BUt just wanted to say: You are like a king for me. You are good at coding and make DUCT TAPE? I'm a filmmaker so I use a lot of it! Thanks, have a nice day - Timothy Lukas H. 2018-11-07 18:32
Haha, thank you! ^^ You have a great day and best of luck on your project! : - Torxed 2018-11-07 18:50


1

It looks like the correct command name to use is: pip-3.2.

2018-11-07 18:15
by D Manokhin
It doesn't find pip-3.2. as well :/ Any other ideas - Timothy Lukas H. 2018-11-07 18:17
@TimothyLukasH. In case python3-pip did not install correctly, re-install it - D Manokhin 2018-11-07 18:20
Ads