Error updating HASS

Sorry if this is Off Topic or not into the right Category.
I am really new to HomeAssistant and since first day everytime i try to update i get at the end of the process this:

Traceback (most recent call last):
File “/home/pi/.local/lib/python3.5/site-packages/pip/”, line 215, in main
status =, args)
File “/home/pi/.local/lib/python3.5/site-packages/pip/commands/”, line 342, in run
File “/home/pi/.local/lib/python3.5/site-packages/pip/req/”, line 784, in install
File “/home/pi/.local/lib/python3.5/site-packages/pip/req/”, line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File “/home/pi/.local/lib/python3.5/site-packages/pip/req/”, line 1064, in move_wheel_files
File “/home/pi/.local/lib/python3.5/site-packages/pip/”, line 345, in move_wheel_files
clobber(source, lib_dir, True)
File “/home/pi/.local/lib/python3.5/site-packages/pip/”, line 316, in clobber
File “/home/pi/.local/lib/python3.5/site-packages/pip/utils/”, line 83, in ensure_dir
File “/usr/lib/python3.5/”, line 241, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permesso negato: ‘/usr/local/lib/python3.5/dist-packages/attrs-17.4.0.dist-info’

What is wrong and how to solve?