Error with pip install

pip install gives six errors

pip install plotly --upgrade

When

sudo pip install awscli

Came out at that time

error

Installing collected packages: six, pytz
  Found existing installation: six 1.4.1
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_set.py", line 736, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_install.py", line 742, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip-8.1.2-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 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-4hp64P-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

Solution

Add "--ignore-installed six"

sudo pip install plotly --upgrade --ignore-installed six

Recommended Posts

Error with pip install
Install scikit.learn with pip
SSL certificate related with pip install? Error
When moss with pip install
Install github repository with pip
pip install ○○○ error Command errored out with exit status 1:
A memorandum when an error occurs with pip install
Install Python 2.7.9 and Python 3.4.x with pip.
Permission denied with pip install pyopenssl
Manipulate colors with pip install color
How to install mysql-connector with pip3
Proxy error when running "pip install"
[Python Windows] pip install with Python version
sudo pip install
In pip install clang: error: unknown argument:'-mno-fused-madd'
I want to pip install with PythonAnywhere
Install by specifying the version with pip
scipy stumbles with pip install on python 2.7.8
I can't install the package with pip.
Let's install box2d-py with Windows 10 environment pip
Dealing with PermissionError [Error 1] for pip install -U pip on macOS Sierra
I get an error when trying to install maec 4.0.1.0 with pip
Error when installing a module with Python pip
I can't install Dask with pip on Ubuntu
Install pip on Mavericks
PIL installation with pip
Install pip, pyenv, BeautifulSoup4
Installing packages with pip3
How to install pip
I got an SSL related error with pip install, so I solved it
Use pip with MSYS2
Install pip and pandas with Ubuntu or VScode
Install Voluptuous with Python 2.5
Install the pip command
Install torch-scatter with PyTorch 1.7
Install python with pyenv
Install pip / pip3 on Ubuntu
Eliminates SSL error when PIP Install on Windows.
When pip install fails
Steps to install your own library with pip
Workaround if you get an error when trying to install PySide with pip
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
(CentOS) ERROR: Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config
Until you install TensorFlow-GPU with pip in Windows environment
Install tweepy with pip and use it for API 1.1
Bulk update with pip (with confirmation)
Install Python environment with Anaconda
Use pip with Jupyter Notebook
Specify version with conda install
Control error wording with nginx
Pip install in proxy environment
Install external libraries with Python
Pip install the GitHub repository
Error when playing with python
For those who are in trouble with an error when pip install xg boost
I got an error when pip install pandas on Mac, so I dealt with it
Can't find the package you installed with pip install --user?
Manually fix pip install not possible with Unicode Decode Eroor
Steps to install a Git cloned package locally with pip
A story about installing matplotlib using pip with an error
Install Jupiter Notebook on Windows with pip in proxy environment