Пытался обновить PIP версии 8.1.1 до 20.2.4 вылезла ошибка, прошу помочь кто знает решения этого, уже лазил по форумам, но все равно не обновляется, заранее спасибо
'''
(venv) kostya@stean3:~/DB_PDD$ python -m pip install --upgrade pip
Collecting pip
Using cached
https://files.pythonhosted.org/packages/cb/28/91f2...
Installing collected packages: pip
Found existing installation: pip 8.1.1
Uninstalling pip-8.1.1:
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/shutil.py", line 538, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/home/kostya/venv/lib/python3.5/site-packages/pip-8.1.1.dist-info/DESCRIPTION.rst' -> '/tmp/pip-59b6n9nv-uninstall/home/kostya/venv/lib/python3.5/site-packages/pip-8.1.1.dist-info/DESCRIPTION.rst'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kostya/venv/lib/python3.5/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/commands/install.py", line 335, in run
prefix=options.prefix_path,
File "/home/kostya/venv/lib/python3.5/site-packages/pip/req/req_set.py", line 726, in install
requirement.uninstall(auto_confirm=True)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/req/req_install.py", line 747, in uninstall
paths_to_remove.remove(auto_confirm)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python3.5/shutil.py", line 553, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/home/kostya/venv/lib/python3.5/site-packages/pip-8.1.1.dist-info/DESCRIPTION.rst'
You are using pip version 8.1.1, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) kostya@stean3:~/DB_PDD$ sudo python -m pip install --upgrade pip
/usr/bin/python: No module named pip
(venv) kostya@stean3:~/DB_PDD$ python -m pip install --upgrade pip
Collecting pip
Using cached
https://files.pythonhosted.org/packages/cb/28/91f2...
Installing collected packages: pip
Found existing installation: pip 8.1.1
Uninstalling pip-8.1.1:
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/shutil.py", line 538, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/home/kostya/venv/lib/python3.5/site-packages/pip-8.1.1.dist-info/DESCRIPTION.rst' -> '/tmp/pip-z0i63h0t-uninstall/home/kostya/venv/lib/python3.5/site-packages/pip-8.1.1.dist-info/DESCRIPTION.rst'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kostya/venv/lib/python3.5/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/commands/install.py", line 335, in run
prefix=options.prefix_path,
File "/home/kostya/venv/lib/python3.5/site-packages/pip/req/req_set.py", line 726, in install
requirement.uninstall(auto_confirm=True)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/req/req_install.py", line 747, in uninstall
paths_to_remove.remove(auto_confirm)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/home/kostya/venv/lib/python3.5/site-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python3.5/shutil.py", line 553, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/home/kostya/venv/lib/python3.5/site-packages/pip-8.1.1.dist-info/DESCRIPTION.rst'
'''