Error Message:
Exception:
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py”, line 342, in run
prefix=options.prefix_path,
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py”, line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py”, line 115, in remove
renames(path, new_path)
File “/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py”, line 267, in renames
shutil.move(old, new)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 300, in move
rmtree(src)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py”, line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/EGG-INFO/PKG-INFO’
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the ‘pip install –upgrade pip’ command.
How to Solve this error:
When using pip to update a Python library under Mac, it prompts that the pip version is too low. The command line at the bottom shows that it needs to be upgraded. The upgrade command is: You should consider upgrading via the’pip install –upgrade pip’ command.
The command input given by the installation: pip install –upgrade pip; after the result is executed, the same error is still reported.
After retries N times, the execution still failed.
Finally, after searching online, I found out that it was a permission problem. Modify the execution command as follows:
sudo pip install –upgrade pip
Read More:
- MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- Error:Could not install packages due to an OSError:[WinError 5] Access denied
- How to Solve PIP3 error After upgrading pip3 install –upgrade pip
- onnx error: ImportError: /home/dy/anaconda3/envs/torch/lib/python3.6/site-packages/onnx…
- Chromdriver Install error: File “C:\python37\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start stdin=PIPE) File…
- [Solved] Error: unrecognized arguments: — no site packages
- Python Error: ImportError: cannot import name ‘logsumexp’ from ‘scipy.misc’(Anaconda3\lib\site-packages\scipy\misc)
- [zipfile] Python packages files as zip packages & decompresses them
- VScode: How to Solve Pylance Error (pip Library Files Installed)
- How to Solve Error handling after upgrade pip of Anaconda
- [Solved] ERROR: pip‘s dependency resolver does not currently take into account all the packages that are inst
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- Python PIP TypeError: expected str, bytes or os.PathLike object, not int
- Python Error: OSError: cannot open resource [How to Solve]
- Python Error: pip install mysql-connector-python failed
- [Solved] Error starting proxy server: oserror (10013), “an attempt was made to access the socket in a way that the access permission is not allowed.”, None, 10013, None)
- Python installs virtualenv through PIP and always reports an error: response.py“, line 438, in _error_catcher yield
- Python 2.7: How to Install PIP
- Python Use PIP to install pyinstaller Error [Solved]