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!
A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.
Pip3 is the Python3 version of pip. If you use pip, then only the python2. 7 version will be installed. You have to use pip3 for it to be installed on Python3.
Finally, you check the version of the pip3 and pip executables inside your activated virtual environment. Both point to the same pip module, so once your virtual environment is activated, you can use either pip or pip3 .
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 (as of 2019-09-09) 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 pre 2020. 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 for as long as Python2 is the default python environment in your distro. 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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With