Docs/Python/python删除模块.txt
2022-10-18 16:59:37 +08:00

13 lines
No EOL
399 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

①easy_install 安装的模块:
# easy_install -m PackageName
删除site-packages下的egg
②通过发行包附带的setup.py安装的模块首选
# python setup.py uninstall
若未提供uninstall选项可以
# python setup.py install --record record.txt
然后删除record.txt中的各个文件
然后查看site-packages中有无空目录残余
③用pip安装的包
# pip uninstall XXX