Is there a way to get a list of the standard packages so I can see what needs to be potentially be uninstalled?
The article suggests there are two versions of virtualenv installed and that is what caused his error, but I can't unisntall virtualenv due to rights.
ERROR: Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/shutil.py", line 806, in move
os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/usr/local/lib/python3.9/site-packages/virtualenv-20.4.7.dist-info/' -> '/tmp/pip-uninstall-_kqpoh02'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in _main
status = self.run(options, args)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/commands/uninstall.py", line 85, in run
uninstall_pathset = req.uninstall(
File "/usr/local/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 672, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 386, in remove
moved.stash(path)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 275, in stash
renames(path, new_path)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/utils/misc.py", line 324, in renames
shutil.move(old, new)
File "/usr/local/lib/python3.9/shutil.py", line 824, in move
rmtree(src)
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: 'zip-safe'