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.