This is the verbose output:
ERROR: Could not install packages due to an EnvironmentError.
Consider using the `--user` option or check the permissions.
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 397, in run
installed = install_given_reqs(
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_internal/req/__init__.py", line 99, in install_given_reqs
uninstalled_pathset.commit()
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 450, in commit
self._moved_paths.commit()
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 290, in commit
save_dir.cleanup()
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_internal/utils/temp_dir.py", line 199, in cleanup
rmtree(ensure_text(self._path))
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_vendor/retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_vendor/retrying.py", line 212, in call
raise attempt.get()
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_vendor/retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_vendor/six.py", line 703, in reraise
raise value
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_vendor/retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/srv/homeassistant/lib/python3.9/site-packages/pip/_internal/utils/misc.py", line 138, in rmtree
shutil.rmtree(dir, ignore_errors=ignore_errors,
File "/usr/local/lib/python3.9/shutil.py", line 718, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/local/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/local/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
os.unlink(entry.name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'RECORD'
WARNING: You are using pip version 20.2.4; however, version 21.1.3 is available.
You should consider upgrading via the '/srv/homeassistant/bin/python3 -m pip install --upgrade pip' command.
Removed build tracker: '/tmp/pip-req-tracker-3dsmw2kb'