pip3 uninstall requests requests selectorli
Found existing installation: requests 2.24.0
Uninstalling requests-2.24.0:
Would remove:
/usr/lib/python3.8/site-packages/requests
/usr/lib/python3.8/site-packages/requests-2.24.0-py3.8.egg-info
Proceed (y/n)? y
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/shutil.py", line 788, in move
os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/usr/lib/python3.8/site-packages/requests' -> '/tmp/pip-uninstall-ywgjrzuu'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 188, in _main
status =
self.run(options, args)
File "/usr/lib/python3.8/site-packages/pip/_internal/commands/uninstall.py", line 85, in run
uninstall_pathset = req.uninstall(
File "/usr/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 676, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/usr/lib/python3.8/site-packages/pip/_internal/req/req_uninstall.py", line 394, in remove
moved.stash(path)
File "/usr/lib/python3.8/site-packages/pip/_internal/req/req_uninstall.py", line 283, in stash
renames(path, new_path)
File "/usr/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 349, in renames
shutil.move(old, new)
File "/usr/lib/python3.8/shutil.py", line 800, in move
rmtree(src)
File "/usr/lib/python3.8/shutil.py", line 715, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.8/shutil.py", line 672, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/lib/python3.8/shutil.py", line 670, in _rmtree_safe_fd
os.unlink(
entry.name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: '
models.py'