PyDev Eclipse Python解释器错误:stdlib未找到 [英] PyDev Eclipse Python interpreters Error: stdlib not found

查看:1829
本文介绍了PyDev Eclipse Python解释器错误:stdlib未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用Eclipse 3.6作为Python编辑器。
我安装最新版本的PyDev,然后尝试在我的mac上设置首选项的Interpreter - Python字段。



我的python版本是2.6路径为/ usr / bin / python。当我输入这个,我选择要添加到系统PYTHONPATH的项目我得到以下错误信息:


错误:Python stdlib不发现



似乎在安装过程中没有找到/选择Python / Lib文件夹(包含标准的
库)。



此文件夹(包含threading.py和
traceback.py等文件)是PyDev正常运行所必需的(它必须
包含实际的源文件,不仅.pyc文件)...


所以我不能告诉eclipse的解释器路径!
任何帮助将是伟大的!
(我尝试重新安装PyDev,没有运气)



谢谢!



按照Praveen的回答,我的python库位于/library/python/2.6/site-packages中。当我将/ usr / bin / python进入解释器字段时,eclipse会询问我要添加到我的系统PYTHONPATH中的路径。其中一个复选框项目就是这个路径。所以我检查一下,连同其他的盒子。点击确定,我得到相同的错误。

解决方案

刚刚找到了我自己的问题的答案,以为可能会启发其他用户有类似的问题。我稍后会尝试看看它是否有效。



在SourceForge上: http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4480085




  • tim-erwin写道:



我下载了Python源代码, / Lib文件夹放入/System/..../Frameworks/.../lib/python2.6/,它可以正常工作。




  • fabioz写道:



这是一个解决方案(尽管通常我在Mac OS上做的是从python.org安装python而不是使用默认的 - 不知道在Mac OS中可能会发生什么,如果在开发过程中发生不好的事情)。


I have been trying to use Eclipse 3.6 as a Python editor. I install the latest version of PyDev, and then try to set the Interpreter - Python field of the preferences, on my mac.

My python version is 2.6 and the path is "/usr/bin/python". When I enter this, and I select the items to add to the system PYTHONPATH I get the following error message:

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) ...

So I can't tell eclipse the interpreter path! Any help would be great! (I tried reinstalling PyDev already, no luck)

Thanks!

Following Praveen's answer, My python library is in /library/python/2.6/site-packages. When I enter /usr/bin/python into the interpreter field, eclipse asks me which paths I would like to add to my System PYTHONPATH. One of the checkbox items is exactly that path. So I check it, along with the other boxes. Click ok, and I get the same error.

解决方案

just found an answer to my own question, thought it might enlighten other users with similar problems. I will try it out later to see if it works.

On SourceForge: http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4480085:

  • tim-erwin writes:

"I downloaded the Python source release and simply dropped the /Lib folder into the /System/..../Frameworks/.../lib/python2.6/ and it works."

  • fabioz writes:

"That's a solution (although usually what I do on Mac OS is getting a python install from python.org instead of using the default one -- not sure what you may break in Mac OS if something bad happens there while developing)."

这篇关于PyDev Eclipse Python解释器错误:stdlib未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆