Good morning.
I removed a python3 module from the installation folder on my pc (in particular "/usr/lib/python3/dist-packages". using sudo rm -r module_name
After doing that I remembered that I could actually use
pip3 uninstall module_name
Now, I cannot reinstall the module because pip3 thinks it is already installed. But I cannot either unistall it trough pip3 uninstall module_name
because I get the output:
Not uninstalling module_name at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'module_name'. No files found to uninstall.
My guess is that pip3 has a file where it list all the modules that it saves, so if I modify it I can remove module_name
. But I was not able to find it, and I think may causes some other unintentional damage by modifying it.
Do you have any suggestions on how to proceed? Do you know in which file does pip3 store the list of installed modules?
Thank you in advance for your time and patience.