0
我似乎無法卸載我創建並從tar.gz安裝的包。錯誤點 - 卸載我自己的包
從python索引下載的任何軟件包都可以卸載,但我自己似乎沒有工作。
我使用創建了自己的包:
python setup.py sdist
安裝它使用:安裝
sudo pip install ./dist/my-package-v1.1.tar.gz
包和工作正常。 當我嘗試卸載:
sudo pip uninstall my-package
我得到:安裝
Can't uninstall 'my-package'. No files were found to uninstall.
的包裝和名稱是否正確。我確信通過:
sudo rm -Rf /usr/local/lib/python2.7/dist-packages/my-package
爲什麼PIP不起作用:
$ sudo pip freeze | grep my-package
my-package==1.1
我能卸載它現在是手動刪除 /usr/local/lib/python2.7/dist-packages
通過該文件夾的唯一途徑?
BTW:也許這可以幫助?:
whereis python
python: /usr/bin/python3.3m /usr/bin/python /usr/bin/python2.7-config /usr/bin/python3.3 /usr/bin/python2.7 /etc/python /etc/python3.3 /etc/python2.7 /usr/lib/python3.3 /usr/lib/python2.7 /usr/bin/X11/python3.3m /usr/bin/X11/python /usr/bin/X11/python2.7-config /usr/bin/X11/python3.3 /usr/bin/X11/python2.7 /usr/local/lib/python3.3 /usr/local/lib/python2.7 /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz