command line - Bith pip and pip3 direct to pip3 in the bash commandline - Ask Ubuntu


i using ubuntu , have problem pip installation. both pip , pip3 means pip3 in bash commandline. when type pip -v or pip3 -v, shows same information:

pip 8.1.2 /usr/local/lib/python3.5/dist-packages (python 3.5) 

which means can't use python 2.7 pip.

the output type -a gives following:

$ type -a pip  /usr/local/bin/pip  $ type -a pip3  /usr/local/bin/pip3 

any suggestions?

from can gather sound don't have pip python 2.7 installed.

what output of dpkg -l 'python-pip'?

since have python 3 pip installed under /usr/local/bin sound installed you, manually, , not using package system on ubuntu.

install pip python 2.7

to install pip python 2.7 can install using apt-get

$ sudo apt-get install python-pip 

the output type -a pip might this:

$ type -a pip pip /usr/local/bin/pip pip /usr/bin/pip 

the second 1 python 2.7.

$ /usr/bin/pip -v pip 8.1.1 /usr/lib/python2.7/dist-packages (python 2.7) 

this controlled order different paths in local $path envrionment. have following:

$ echo $path /home/bin:/usr/local/bin:/usr/bin:/bin 

any command in /usr/local/bin chosen before commands in /usr/bin. use pip python 2.7 you'll have use full path.

$ /usr/bin/pip 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User