When trying to install PyAutoGui , I have an error that says that I need to update pip ,when trying to update error appears
pip install --upgrade pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd1...
Installing collected packages: pip
Found existing installation: pip 9.0.3
Successfully uninstalled pip-9.0.3
Rolling back uninstall of pip
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
File "/home/genios/.local/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
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
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
File "/usr/lib/python3.5/shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] access is 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 do I do?