Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 12228  / 3 Years ago, wed, may 19, 2021, 3:23:25

I am trying to install a few different things and having issues.



I thought pip could have been the issue on one of the packages I was trying to install. So I decided to try to upgrade pip, following this reference:



https://pip.pypa.io/en/latest/installing.html#install-pip



So I ran :



sudo pip install -U pip


That output was:



Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-6.1.1-py2.py3-none-any.whl#md5=172eb5abab25a5e0f7a7b63c7a49378d
Downloading pip-6.1.1-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.4
Uninstalling pip:
Successfully uninstalled pip
Successfully installed pip
Cleaning up...


Now however when I run:



pip install <package>


I get:



"bash: /usr/bin/pip: No such file or directory"


What can I do to get the new pip working?
(And hopefully not have to re-install all of the packages that the older version of pip had installed).



I am very new Ubuntu and to using pip.



Additional:



I tried running:



easy_install pip


This gave me:



Searching for pip
Best match: pip 6.1.1
Adding pip 6.1.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3.4 script to /usr/local/bin
Installing pip3 script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages
Processing dependencies for pip
Finished processing dependencies for pip


Still the pip command is not being recognized.



pip --version

bash: /usr/bin/pip: No such file or directory


More additional:
I downloaded the get-pip.py and then ran python get-pip.py.
This gave me an error something like "InsecurePlatformWarning"


More From » upgrade

 Answers
7

Try using the package from the repository,



sudo apt-get install python-pip


If this gives you errors, you might first want to do a



sudo apt-get remove python-pip



and then try again with install.



This also shouldn't interfere or remove the modules you already installed.


[#20402] Wednesday, May 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;