pip: Can't uninstall projects installed with "pip install -e"
After installing a project (I’ve tried two) with pip install -e . and then running pip uninstall <project>, the egg-link remains in place and the pth remains altered.
If instead pip install -e <path/to/project> is used to install, pip uninstall <project> returns Can't uninstall '<project>'. No files were found to uninstall.
pip: 1.5.5 python: 2.7.6
pip installed on Ubuntu 14.04 via python-pip package.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 5
- Comments: 19 (3 by maintainers)
Solution: the advice from
worked for me.
The solution that worked for me. It will create a
.egg-infofile inside the directory where we runpip install -e .Go to that directory and delete.egg-infofile. Then cross check withpip listThank you much for the solution, it worked for me, too. Actually I found a directory named
projectname.egg-infoin the project repository, not a file.have same problem with pip3 from ubuntu 14.04 package “python3-pip”:
% pip3 install -e /path/to/X … Successfully installed X Cleaning up… % pip3 list … X … % pip3 uninstall X Can’t uninstall ‘X’. No files were found to uninstall.