Doesn't work with Python 3.5

I have installed Python 3.5 and Pip, but when I type pip or pip3 in the console, I get this error

The folder you are calling from can no longer be found.

If I run pwd I get

/ houses / zahid

The protocol was established using

sudo python /usr/local/lib/python3.5/site-packages/easy_install.py pip

      

and the output I got was

[sudo] password for zahid: 
Searching for pip
Best match: pip 8.1.1
Adding pip 8.1.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3.5 script to /usr/local/bin
Installing pip3 script to /usr/local/bin

Using /usr/local/lib/python3.5/site-packages
Processing dependencies for pip
Finished processing dependencies for pip

      

Can anyone tell me what's going on here?

which python3 returns

/ Usr / bin / python3

which pip returns

/ Usr / local / bin / pip

which pip3 returns

/usr/local/bin/pip3

      

echo $ PYTHONPATH returns

nothing blank

      

Hello

+3


source to share


2 answers


I had this error on my Mac and a reboot fixed this issue for me.



+2


source


Does it work sudo pip

?

If so, make sure your profile isn't corrupted. Check your path variable using echo command with something likeecho $PATH



You need to make sure it is /usr/local/bin

present in your user profile.

If not, have you installed pip in 3.5 and are you by any chance using some other version of python like python 2?

+1


source







All Articles