Hello,
I am trying to install a couple of things with pip: protobuf==2.6.1requests==2.10.0s2sphere==0.2.4gpsoauth==0.3.0
, but I'm receiving an error for the uninstallation of protobuf:
pip install -r requirements.txt
Collecting protobuf==2.6.1 (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): requests==2.10.0 in /home/intusvox/.local/lib/python2.7/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): s2sphere==0.2.4 in /home/intusvox/.local/lib/python2.7/site-packages (from -r requirements.txt (line 4))
Collecting gpsoauth==0.3.0 (from -r requirements.txt (line 5))
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages (from protobuf==2.6.1->-r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): future in /home/intusvox/.local/lib/python2.7/site-packages (from s2sphere==0.2.4->-r requirements.txt (line 4))
Collecting pycryptodomex>=3.0 (from gpsoauth==0.3.0->-r requirements.txt (line 5))
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7 (from future->s2sphere==0.2.4->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): importlib in /home/intusvox/.local/lib/python2.7/site-packages (from future->s2sphere==0.2.4->-r requirements.txt (line 4))
Installing collected packages: protobuf, pycryptodomex, gpsoauth
Found existing installation: protobuf 3.0.0b2
Uninstalling protobuf-3.0.0b2:
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/google/protobuf/__init__.py'
What am I doing wrong? Thanks