###描述
最近学到 python 的第三方模块的使用,默认的话模块会安装在哪?
如果想知道某个特地模块的安装路径如何获取
###描述
最近学到 python 的第三方模块的使用,默认的话模块会安装在哪?
如果想知道某个特地模块的安装路径如何获取
|
1
>>> import string
>>> string.__file__ '/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/string.pyc' 推荐你使用 http://docs.python-guide.org/en/latest/dev/virtualenvs/ |
|
2
@boneyao 感谢
|
|
3
pip list
pip show <package> |
|
IanPeverellMay 9, 2016
4
>>>import sys
>>>sys.path |