When you install a package with pip and the installation fails, pip does not automatically uninstall any successfully installed dependencies.
Check which packages were recently installed with this command:
pip list --format=columns