1. 程式人生 > >python 解除安裝模組

python 解除安裝模組

If you have replaced a package with another version, then you can just delete the package(s) you don't need by deleting the PackageName-versioninfo.egg file or directory (found in the installation directory).

If you want to delete the currently installed version of a package (or all versions of a package), you should first run:



easy_install -m PackageName

This will ensure that Python doesn't continue to search for a package you're planning to remove. After you've done this, you can safely delete the .egg files or directories, along with any scripts you wish to remove.

就是執行:easy_install -m PackageName
完了,你在C:\Python25\Lib\site-packages\下,刪除模組資料夾就好了。