我决定尝试使用 Eclipse 和 PyDev 而不是 IDLE。我成功“安装”了 Eclipse SDK 3.7。之后,我按照 PyDev 网站上显示的步骤,成功安装了插件。但是,在尝试配置我的解释器(Python 3.2.3)时,我总是收到错误,并且不知道如何解决这个问题。我既不能自动也不能手动配置它,而且 PyDev 网站上也没有提到这个错误。
尝试自动配置时,显示的消息是:
Unable to gather the needed info from the system.
This usually means that your interpreter is not in the system PATH.
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.
当我尝试手动配置时,显示的消息是相同的,并补充说导致此问题的一些常见原因可能是版本不兼容。我有最新的 Java(这是要求之一,Eclipse 是昨天从他们的网站下载的,是 3.7 版本(Indigo),Python 是 3.2.3 版本。
我什至尝试添加一个包含库的文件夹,因为据我了解,这也可以解决问题。但是,每当我单击New Folder
按钮时,它什么也不做...
我在 Windows 7 32 位上运行所有这些。
如果有人能在这件事上帮助我,我将不胜感激。
谢谢
> **@Fabio Zadrozny:**
>
> 1: The path to the Python interpreter is C:\Python32\python.exe
>
> 2: The message displayed when I ran the
> interpreterInfo.py was:
>
> C:\Windows\system32>python
> C:\eclipse-SDK-3.7-win32\eclipse\plugins\org.python.p
> ydev_2.6.0.2012041219\PySrc\interpreterInfo.py
>
> <xml>
> <version>3.2</version> <executable>C:\Python32\python.exe</executable>
> <lib
> path="out">C:\eclipse-SDK-3.7-win32\eclipse\plugins\org.python.pydev_2.6.0.
> 2012041219\PySrc</lib> <lib path="ins">C:\Python32\MÓDULOS</lib> <lib
> path="out">C:\Windows\system32\python32.zip</lib> <lib
> path="ins">C:\Python32\DLLs</lib> <lib
> path="ins">C:\Python32\lib</lib> <lib path="ins">C:\Python32</lib>
> <lib path="ins">C:\Python32\lib\site-packages</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>_datetime</forced_lib> <forced_lib>_functools</forced_lib>
> <forced_lib>_heapq</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>_pickle</forced_lib> <forced_lib>_random</forced_lib>
> <forced_lib>_sha1</forced_lib> <forced_lib>_sha256</forced_lib>
> <forced_lib>_sha512</forced_lib> <forced_lib>_sre</forced_lib>
> <forced_lib>_string</forced_lib> <forced_lib>_struct</forced_lib>
> <forced_lib>_subprocess</forced_lib>
> <forced_lib>_symtable</forced_lib> <forced_lib>_thread</forced_lib>
> <forced_lib>_warnings</forced_lib> <forced_lib>_weakref</forced_lib>
> <forced_lib>array</forced_lib> <forced_lib>atexit</forced_lib>
> <forced_lib>audioop</forced_lib> <forced_lib>binascii</forced_lib>
> <forced_lib>builtins</forced_lib> <forced_lib>cmath</forced_lib>
> <forced_lib>errno</forced_lib> <forced_lib>gc</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>sys</forced_lib> <forced_lib>time</forced_lib>
> <forced_lib>winreg</forced_lib> <forced_lib>xxsubtype</forced_lib>
> <forced_lib>zipimport</forced_lib> <forced_lib>zlib</forced_lib>
> </xml>Traceback (most recent call last): File
> "C:\eclipse-SDK-3.7-win32\eclipse\plugins\org.python.pydev_2.6.0.20120412
> 19\PySrc\interpreterInfo.py", line 142, in <module>
> raise RuntimeError('Ok, this is so that it shows the output (ugly hack for s ome platforms, so that it releases the output).')
> RuntimeError: Ok, this is so that it shows the output (ugly hack for
> some platfo rms, so that it releases the output).
谢谢您的帮助!并对格式感到抱歉。