最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Aptana Studio 3中通过Auto Config配置PyDev中Python出错:java.io.IOException: Cannot run program "python": CreateProcess error=2, The system cannot find the file specified

Apatana Studio 3 crifan 8377浏览 0评论

【问题】

在折腾:

【记录】折腾IDE工具:Aptana Studio 3

的过程中,打算去通过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.
java.io.IOException: Cannot run program "python": CreateProcess error=2, The system cannot find the file specified

java.io.IOException Cannot run program python

 

【解决过程】

1。很明显,此处是无法自动检测出来我系统中安装好的Python。

貌似是通过Path环境变量去找Python的。

2.我此处,自己是故意的,一直就没把Python添加到PATH中的。

与此相对的是,之前通过:

【教程】在Eclipse中配置刚安装好的PyDev插件

是可以自动配置的。

而此处,却找不到。有点诡异。

3.参考:

Eclipse, PyDev and Python configuration error

说是,PyDev 2.6.0之后,就已经解决掉此问题了。

所以去看看当前Aptana Studio 3中的PyDev是啥版本的。

其是2.7.0.2012110722的:

pydev is 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:

  • Eclipse Version: 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q

eclipse version is 3.7.2

7.还是自己去手动new吧。

new input python x64 install path

然后可以自动检测和识别:

select folder to be added to system pythonpath

然后就可以正常了:

detected libs

detected forced bultins

 

【总结】

同样的系统环境,之前,单独使用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

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.172 seconds, using 22.12MB memory