D
D
detsu2018-07-20 14:43:16
Python
detsu, 2018-07-20 14:43:16

pip not updating?

When trying to install PyAutoGui I got an error saying I need to upgrade pip , when I try to upgrade it I get an error
pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/ 74/ecd1...
Installing collected packages: pip
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Successfully uninstalled pip-9.0.3
Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
File " /home/genios/.local/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/genios/.local/lib/python3.5/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/genios/.local/ lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/genios/.local/lib/python3.5/site-packages/pip/req /req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/genios/.local/lib/python3.5/site-packages/pip/req /req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/genios/.local/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber (source, lib_dir, True)
File "/home/genios/.local/lib/python3.5/site-packages/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/usr/lib/python3.5 /shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/pip /__init__.py'
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
What should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fedor, 2018-07-20
@keine-lust

sudo python -m pip install --upgrade pip

T
tema_sun, 2018-07-20
@tema_sun

Use venv or do sudo pip install ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question