查看模块
模块的安装与卸载
摘自: 百度知道
方法1:
安装在python上的模块,可以用pip或者执行setup.py来安装
如果你是用pip安装的,可以直接使用pip uninstall 模块名
如果是用python setup.py install安装,使用python setup.py uninstall来卸载
方法2:(手工删除)
摘自:http://blog.sina.com.cn/s/blog_4ddef8f80102v1p8.html
去Python的第三方模块或包的存放位置进行手工删除文件和文件夹,然后删除easy-install.pth文件中的相应的行。Python的模块和包的默认存放位置请查看博文http://blog.sina.com.cn/s/blog_4ddef8f80102v1p6.html。
To uninstall an .egg you need to rm -rf the egg (it might be a directory) and remove the matching line from site-packages/easy-install.pth
查看模块
1.列举所有模块
help(‘modules’)
2.查看模块中的函数列表。
(1)帮助文档。
(2)dir(模块名)