I deleted a pip package with rm -rf
command thinking that the package will be removed. Now the package has been deleted but it still shows up in pip list
and I'm unable to remove it with pip uninstall
nor can I update with pip install --upgrade
.
I'd like to remove it completely. Can anyone please tell me how?
EDIT
The package is psycopg2.
If I try to uninstall :
hammad@hammad-P5QL-E:~$ pip uninstall psycopg2
Can't uninstall 'psycopg2'. No files were found to uninstall.
This is the directory in which psycopg2 was located /usr/lib/python2.7/dist-packages
and I rm -rf
'd it from the same directory.
TIA
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…