[PYTHON] pip install --upgrade pip will result in No such file or directory

Hello sekitaka.

After upgrading pip itself, I can no longer run pip. The output error is as follows.

bash-4.2# pip
bash: /usr/bin/pip: No such file or directory

Certainly / usr / bin / pip was gone. I couldn't find it even if I which.

By the way, pip has been increased from 6.1.1 to 9.0.1.

Solution

hash -r

When I executed a command to erase something like a cache, I was able to use pip safely. I don't have much time for the hash command so I haven't looked into it.

This is my second addiction, so make a note so you don't forget it.

Recommended Posts

pip install --upgrade pip will result in No such file or directory
NO MORE “cd: foo: No such file or directory”
What to do when [Errno 2] No such file or directory appears in Python
What to do if ENOENT: no such file or directory appears during npm install
No such file or directory:'chromedriver': Resolve'chromedriver'
-bash: ./ {file name} .sh: /usr/bin/bash: bad interpreter: No such file or directory
When I try to run the pip command after updating pip, I get "No such file or directory"
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
Import Error: libffi.so.6: cannot open shared object file: No such file or directory
Cannot import cv2 (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)
Addressed "Python .h: No such file or directory" when installing uWSGI with Python 3.8
fatal error: Python.h: no such files or directories when pip3 install psutil
Pip install in proxy environment
After installing Anaconda3, I get the error "zsh: no such file or directory:/opt/anaconda3/bin/conda" in the command line preferences.
[Note] How to deal with unicode error and No such file or directory (output table to excel file with pandas)
When bus = smbus.SMBus (1) gets IOError: [Errno 2] No such file or directory when trying to start the GrovePi starter kit