【pathon安装位置】
使用sys 下的 path 变量,可以查看所有的 python 路径。终端
>>> import sys
>>> sys.path
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
【标准库位置】
lib 目录下(home 目录/pythonXX.XX/lib)
【第三方库】
在 lib 下的 site-packages 目录下
home 目录/pythonXX.XX/lin/site-packages/
【补充】
mac下前往任何文件夹,请在Finder下使用command+shift+G
网友评论