I have installed a large package on my Pythonanywhere account since the installation failed.
Does pip uninstall package dependencies, if the package installation failed?
Pip shouldn't uninstall package dependencies if the installation failed.
If you think it might have, just try to import the dependent package to test it yourself.