Tried this to see if I could remove and reinstall. No use and just lots of red text.
15:22 ~$ pip uninstall flask_sqlalchemy
Found existing installation: Flask-SQLAlchemy 2.4.4
Uninstalling Flask-SQLAlchemy-2.4.4:
Would remove:
/usr/local/lib/python3.9/site-packages/Flask_SQLAlchemy-2.4.4.dist-info/
/usr/local/lib/python3.9/site-packages/flask_sqlalchemy/
Proceed (y/n)? y
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/Flask_SQLAlchemy-2.4.4.dist-in
fo/' -> '/tmp/pip-uninstall-59csw9d9'
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: 'LICENSE.rst'