How to "reset" Python in Ubuntu 16.04 LTS

0

I have a problem with a Python library on my computer, I can not uninstall it through the pip. I would like to know if there is any way to remove the "force" library or restore Python to default setting.

Below is the error when trying to uninstall via pip:

  

rafamttz @ rafamttz: ~ / python2713 / bin $ pip uninstall crossbar   Uninstalling crossbar-17.12.1:     / home / rafamttz / python2713 / COPYRIGHT     / home / rafamttz / python2713 / LICENSE     / home / rafamttz / python2713 / LICENSE-FOR-API     / home / rafamttz / python2713 / bin / crossbar     /home/rafamttz/python2713/lib/python2.7/site-packages/crossbar-17.12.1.dist-info/DESCRIPTION.rst     /home/rafamttz/python2713/lib/python2.7/site-packages/crossbar-17.12.1.dist-info/INSTALLER     /home/rafamttz/python2713/lib/python2.7/site-packages/crossbar-17.12.1.dist-info/METADATA     /home/rafamttz/python2713/lib/python2.7/site-packages/crossbar-17.12.1.dist-info/RECORD

...

  

Proceed (y / n)? and

     

Exception:   Traceback (most recent call last):     File "/home/rafamttz/python2713/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main       status = self.run (options, args)     File "/home/rafamttz/python2713/lib/python2.7/site-packages/pip/commands/uninstall.py", line 76, in run       requirement_set.uninstall (auto_confirm = options.yes)     File "/home/rafamttz/python2713/lib/python2.7/site-packages/pip/req/req_set.py", line 346, in uninstall       req.uninstall (auto_confirm = auto_confirm)     File "/home/rafamttz/python2713/lib/python2.7/site-packages/pip/req/req_install.py", line 754, in uninstall       paths_to_remove.remove (auto_confirm)     File "/home/rafamttz/python2713/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove       renames (path, new_path)     File "/home/rafamttz/python2713/lib/python2.7/site-packages/pip/utils/init.py", line 267, in renames       shutil.move (old, new)     File "/home/rafamttz/python2713/lib/python2.7/shutil.py", line 303, in move       os.unlink (src)

     

OSError: [Errno 13] Permission denied: '/ home / rafamttz / python2713 / COPYRIGHT'   You are using pip version 9.0.1, however version 9.0.3 is available.   You should consider upgrading via the 'pip install --upgrade pip' command.

I'm using Python 2.7.13.

    
asked by anonymous 27.03.2018 / 03:19

1 answer

0

This installation is in your home directory, but apparently you have performed some action with sudo there and it is the reason pip can not delete your files. Go to '/ home / rafamttz / python2713 /' and check the permissions of the files there.

    
27.03.2018 / 03:26