我一直试图使用Eclipse 3.6作为Python编辑器。
我安装最新版本的PyDev,然后尝试设置解释器 – Python字段的首选项,在我的mac。
我的python版本是2.6,路径是“/ usr / bin / python”。当我进入这个,我选择要添加到系统PYTHONPATH的项目,我得到以下错误信息:
Error: Python stdlib not found
It seems that the Python /Lib folder (which contains the standard
library) was not found /selected during the instal process.
This folder (which contains files such as threading.py and
traceback.py) is required for PyDev to function properly (and it must
contain the actual source files, not only .pyc files) …
所以我不能告诉eclipse的解释器路径!
任何帮助将是伟大的!
(我试着重新安装PyDev已经没有运气)
谢谢!
按照Praveen的答案,我的python库在/library/python/2.6/site-packages。当我将/ usr / bin / python输入到解释器字段时,eclipse会询问我要添加到我的系统PYTHONPATH中的路径。其中一个复选框项就是该路径。所以我检查它,连同其他框。单击确定,我得到相同的错误。