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 withsudo apt-get install python3-pip
again.And you might get the issue like...
Don't be afraid! Just do what normal people come up with at the first -- Reinstall it! XDCommand «pip3» was not found, maybe you wanted to say: The command «pip» from the package «python-pip» (universe) pip3: command not found
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__QPIP3 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
Post a Comment