Can't find pip3 ? Here is it!


Haven't update new stuff for a long time!

Here comes some annoying stuff of Python3!

PIP3 installed incorrectly

Some times, after installed python3 manually, you some how installed it with
sudo apt-get install python3-pip
again.

And you might get the issue like...
Command «pip3» was not found, maybe you wanted to say:
 The command «pip» from the package «python-pip» (universe)
pip3: command not found
Don't be afraid! Just do what normal people come up with at the first -- Reinstall it! XD

This might work in Ubuntu base linux.
sudo apt-get remove python3-pip
sudo apt-get install python3-pip
If you are in CentOS or something try:
sudo dnf reinstall python3-pip
In Ubuntu using python3-pip doesn't work, I already did it~

Ok, now you can run upgrade, cuz default pip3 is version 8.0.1
sudo pip3 install --upgrade pip
And... you'll found your pip DEAD, if u are as lucky as I did. Q__Q

PIP3 not work while PIP3.5 did

This is what u might get from pip3 after upgraded:
Traceback (most recent call last):
  File "/home/kleinernull/.pyenv/versions/3.x.x/bin/pip", line 7, in <module>
    from pip import main
ImportError: cannot import name 'main'
Ok, don't worry,  at least pip3.x works isn't it? so...where is it?
Here you go :
cd /usr/local/bin
and you can find both "pip3" and "pip3.x"
but the real pip3 the u execute were locate at
cd /usr/bin
Overlap it with new installed pip3:
cd /usr/local/bin/pip3 /usr/bin
Then...here you go~ Enjoy!

                                            provide

Comments

Popular posts from this blog

UBoot with iMX6 - Part 1

Install chrome on CentOS