尝试将pydev配置为使用iron python解释器(来自Anaconda)作为解释器。在首先尝试了pydev的自动配置:Preferences->PyDev->Interpreters->IronPythonInterpreter->Quick
Auto-Config产生此错误:java.lang.RuntimeException: java.io.IOException: Cannot run program
"ipy": CreateProcess error=2,没有ipy.exe文件在我的系统上。但是,有C:\Anaconda\Scripts\ipython.exe. 这个可执行文件确实打开了一个python REPL。在
我尝试手动创建一个新的配置实例,并将“解释器可执行文件”设置为C:\Anaconda\Scripts\ipython.exe. 首先,这会产生错误:See error log for details. Unable to recreate the Interpreter info
(Its format changed. Please, re-create your Interpreter
information).Contents found: IPython对于python-Preferences,>;在“内部参数”。在
为解释器添加了新的配置。在
但是,它指向C:\Anaconda\python.exe而不是C:\Anaconda\Scripts\ipython.exe在
我基于解释器创建了一个IronPython运行配置并运行它,这个消息打印到控制台:-X is reserved for implementation-specific arguments usage: C:\Anaconda\python.exe [option] ... [-c cmd | -m mod | file | -] [arg]
... Try `python -h' for more information.在ipython.exe不支持-X
在python.exe支持-x,但不支持-x
根据运行配置,这是命令行和PYTHONPATH:C:\Anaconda\python.exe -u -X:FullFrames
C:\py-eclipse\plugins\org.python.pydev_3.5.0.201405201709\pysrc\pydevd.py
--multiprocess --vm_type python --client 127.0.0.1 --port 0 --file C:\Users\Live\WebstormProjects\uni-poc\python\ThinkStats\thinkstats\survey.py
The PYTHONPATH that will be used is:
C:\py-eclipse\plugins\org.python.pydev_3.5.0.201405201709\pysrc\pydev_sitecustomize;C:\Users\Live\WebstormProjects\uni-poc\python\ThinkStats;.;C:\Anaconda\Scripts;C:\Anaconda\DLLs;C:\Anaconda\lib;C:\Anaconda\lib\lib-tk;C:\Anaconda;C:\Anaconda\lib\site-packages;C:\Anaconda\lib\site-packages\PIL;C:\Anaconda\lib\site-packages\win32;C:\Anaconda\lib\site-packages\win32\lib;C:\Anaconda\lib\site-packages\Pythonwin;C:\Anaconda\lib\site-packages\runipy-0.1.0-py2.7.egg;C:\Anaconda\lib\site-packages\setuptools-3.6-py2.7.egg;C:\Anaconda\lib\site-packages\IPython\extensions;C:\Users\Live.ipythonPydev仍在向C:\Anaconda发送-X\python.exe这是行不通的。在配置:
Windows 8.1,64位
Eclipse版本:开普勒服务版本2
pydev_3.05.0.20.1405201。。。在
Anaconda 2.1 for Windows 64位