【问题】
在折腾:
的过程中,打算去通过Auto Config配置PyDev中的Python,结果出错:
Unable to gather the needed info from the system. This usually means that your interpreter is not in the system PATH. |
【解决过程】
1。很明显,此处是无法自动检测出来我系统中安装好的Python。
貌似是通过Path环境变量去找Python的。
2.我此处,自己是故意的,一直就没把Python添加到PATH中的。
与此相对的是,之前通过:
是可以自动配置的。
而此处,却找不到。有点诡异。
3.参考:
Eclipse, PyDev and Python configuration error
说是,PyDev 2.6.0之后,就已经解决掉此问题了。
所以去看看当前Aptana Studio 3中的PyDev是啥版本的。
其是2.7.0.2012110722的:
所以,还是很奇怪的。
4.后来找到,别人也遇到类似问题:
Aptana Studio 3 Pydev – new Python project
所以,很明显,应该是Aptana Studio自己没集成好PyDev的缘故。
5.找了半天,即使是参考:
Eclipse, PyDev and Python configuration error
也还是没有解决问题。
貌似只能逼得自己去通过手动new去添加了。
6.这人:
Unable to gather python interpreter info for pydev
和我几乎是同样的环境,其是:
OS: Windows 7 x64 Python: 2.7.3 Pydev: 2.7.1.2012100913 Eclipse: Version: Juno Service Release 1 Build id: 20121004-1855 |
我的是:
OS: Win7 x64 Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 PyDev:2.7.0.2012110722的 Aptana Studio 3, build: 3.3.1.201212171919:
|
7.还是自己去手动new吧。
然后可以自动检测和识别:
然后就可以正常了:
【总结】
同样的系统环境,之前,单独使用Eclipse+PyDev是可以Auto Config的,此处却不可以。
貌似Aptana Studio 3中,对于PyDev,整合的还是很不好啊。
转载请注明:在路上 » 【已解决】Aptana Studio 3中通过Auto Config配置PyDev中Python出错:java.io.IOException: Cannot run program "python": CreateProcess error=2, The system cannot find the file specified