作业系统:Windows 7 x64
的Python:2.7.3
佩德夫(Pydev):2.7.1.2012100913
Eclipse:版本:Juno Service Release 1内部版本:20121004-1855
我无法在Pydev中配置python解释器。如果尝试使用自动配置或手动配置,则会得到相同类型的错误输出:
或者
Python在我的PATH中。这是interpreterInfo.py
(stdout和stderr)的输出:
<xml>
<version>2.7</version>
<executable>C:\Python27\python.exe</executable>
<lib path="out">D:\eclipse\plugins\org.python.pydev_2.7.1.2012100913\pysrc</lib>
<lib path="ins">C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\logilab_common-0.58.0-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\logilab_astng-0.23.1-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\pip-1.1-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\pylint-0.25.1-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\rope-0.9.3-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\sphinx-1.1.3-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\docutils-0.9.1-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\jinja2-2.6-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\pygments-1.5-py2.7.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\lxml-2.2.8-py2.7-win32.egg</lib>
<lib path="ins">C:\Python27\lib\site-packages\spyder-2.0.10-py2.7.egg</lib>
<lib path="out">C:\Windows\system32\python27.zip</lib>
<lib path="ins">C:\Python27\DLLs</lib>
<lib path="ins">C:\Python27\lib</lib>
<lib path="ins">C:\Python27\lib\plat-win</lib>
<lib path="ins">C:\Python27\lib\lib-tk</lib>
<lib path="ins">C:\Python27</lib>
<lib path="ins">C:\Python27\lib\site-packages</lib>
<lib path="ins">C:\Python27\lib\site-packages\PIL</lib>
<lib path="ins">C:\Python27\lib\site-packages\win32</lib>
<lib path="ins">C:\Python27\lib\site-packages\win32\lib</lib>
<lib path="ins">C:\Python27\lib\site-packages\Pythonwin</lib>
<lib path="ins">C:\Python27\lib\site-packages\wx-2.8-msw-ansi</lib>
<forced_lib>__builtin__</forced_lib>
<forced_lib>__main__</forced_lib>
<forced_lib>_ast</forced_lib>
<forced_lib>_bisect</forced_lib>
<forced_lib>_codecs</forced_lib>
<forced_lib>_codecs_cn</forced_lib>
<forced_lib>_codecs_hk</forced_lib>
<forced_lib>_codecs_iso2022</forced_lib>
<forced_lib>_codecs_jp</forced_lib>
<forced_lib>_codecs_kr</forced_lib>
<forced_lib>_codecs_tw</forced_lib>
<forced_lib>_collections</forced_lib>
<forced_lib>_csv</forced_lib>
<forced_lib>_functools</forced_lib>
<forced_lib>_heapq</forced_lib>
<forced_lib>_hotshot</forced_lib>
<forced_lib>_io</forced_lib>
<forced_lib>_json</forced_lib>
<forced_lib>_locale</forced_lib>
<forced_lib>_lsprof</forced_lib>
<forced_lib>_md5</forced_lib>
<forced_lib>_multibytecodec</forced_lib>
<forced_lib>_random</forced_lib>
<forced_lib>_sha</forced_lib>
<forced_lib>_sha256</forced_lib>
<forced_lib>_sha512</forced_lib>
<forced_lib>_sre</forced_lib>
<forced_lib>_struct</forced_lib>
<forced_lib>_subprocess</forced_lib>
<forced_lib>_symtable</forced_lib>
<forced_lib>_warnings</forced_lib>
<forced_lib>_weakref</forced_lib>
<forced_lib>_winreg</forced_lib>
<forced_lib>array</forced_lib>
<forced_lib>audioop</forced_lib>
<forced_lib>binascii</forced_lib>
<forced_lib>cPickle</forced_lib>
<forced_lib>cStringIO</forced_lib>
<forced_lib>cmath</forced_lib>
<forced_lib>datetime</forced_lib>
<forced_lib>errno</forced_lib>
<forced_lib>exceptions</forced_lib>
<forced_lib>future_builtins</forced_lib>
<forced_lib>gc</forced_lib>
<forced_lib>imageop</forced_lib>
<forced_lib>imp</forced_lib>
<forced_lib>itertools</forced_lib>
<forced_lib>marshal</forced_lib>
<forced_lib>math</forced_lib>
<forced_lib>mmap</forced_lib>
<forced_lib>msvcrt</forced_lib>
<forced_lib>nt</forced_lib>
<forced_lib>operator</forced_lib>
<forced_lib>parser</forced_lib>
<forced_lib>signal</forced_lib>
<forced_lib>strop</forced_lib>
<forced_lib>sys</forced_lib>
<forced_lib>thread</forced_lib>
<forced_lib>time</forced_lib>
<forced_lib>xxsubtype</forced_lib>
<forced_lib>zipimport</forced_lib>
<forced_lib>zlib</forced_lib>
</xml>Traceback (most recent call last):
File "D:\eclipse\plugins\org.python.pydev_2.7.1.2012100913\pysrc\interpreterInfo.py", line 199, in <module>
raise RuntimeError('Ok, this is so that it shows the output (ugly hack for some platforms, so that it releases the output).')
RuntimeError: Ok, this is so that it shows the output (ugly hack for some platforms, so that it releases the output).
任何帮助将是巨大的,谢谢!
最佳答案
我没想到会遇到这样的问题:(PyDev在Indigo的27台64位PC上工作;我在Juno上的32位PC上测试了Same PyDev和Python,并获得了成功;然后第一次尝试在64位PC上进行错误 ...
我根本没有使用过“autoconfig”。我正在排队
发生时,“文件>新建> PyDevProject> ... PrjectName ... click_here_to_configure_an_interpreter_not_listed”。
短暂的搜索之后,运气就来了:-)
http://pydev.org/manual_101_interpreter.html
帮助我解决了这个问题,
仅使用一条替代路径来实现同一件事。
{1。转到:窗口>首选项> PyDev>解释器-(Python/Jython/IronPython)。 ...}
关于eclipse - 无法收集pydev的python解释器信息,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13039194/