How to fix pip hanging when sqlalchjemy is uninstalled

In Python 2.7.11 on Windows, I installed sqlalchemy in a virtual environment. Now when I try to remove it with

pip uninstall sqlalchemy 

pip freezes when listing the following lines:

 . . . c:\venv\lib\site-packages\sqlalchemy\util\langhelpers.py c:\venv\lib\site-packages\sqlalchemy\util\langhelpers.pyc c:\venv\lib\site-packages\sqlalchemy\util\queue.py c:\venv\lib\site-packages\sqlalchemy\util\queue.pyc c:\venv\lib\site-packages\sqlalchemy\util\topological.py c:\venv\lib\site-packages\sqlalchemy\util\topological.pyc 

This happens repeatedly when I cancel the delete command and issue it again, even after rebooting the system.

What to do to make pip sequel?

+7
python windows pip sqlalchemy uninstall
source share
3 answers

It seems that deleting deleted files tells you: β€œDo you want to continue (Y / N)?”, But for some reason this is not visible in cygwin or git bash.

By typing "y" and pressing enter, delete the delete item.

+18
source share

Use

pip uninstall sqlalchemy --yes

+5
source share

I was not able to decide why pip was deleted when it was deleted; however through another fooobar.com/questions/307678 / ... I realized that I can remove the package manually using

 del C:\venv\Lib\site-packages\sqlalchemy del C:\venv\Lib\site-packages\SQLAlchemy-1.0.14.dist-info 

I also checked for sqlalchemy mentions in any * .pth file, but there were no cases.

In any case, pip freeze showed that the package was removed.

0
source share

All Articles