NetBeans 8.0.2无法识别python平台.如何解决这个问题? [英] NetBeans 8.0.2 not recognizing python plataform. How to solve this issue?

查看:151
本文介绍了NetBeans 8.0.2无法识别python平台.如何解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的电脑上安装了思想冠层的免费版本 python解释器.

I have installed in my pc the free version of Enthought Canopy that works good as python interpreter.

但是我试图转向免费的IDE,我选择使Netbeans 8.0.2能够运行Python.经过一番研究后,我发现了这篇帖子,其中显示了如何完成此任务. 不幸的是,当我尝试打开一个新的Python项目时,出现一个错误必须选择有效的平台",错误的python平台",如下图所示:

But I was trying to move to a free IDE and I choose to make my Netbeans 8.0.2 to be able to run Python. After some research I found this post that shows how to accomplish this task. Infortunately when I try to open a new Python project I have one error "Valid plataform has to be selected" , "wrong python plataform", as you can see picture below:

经过一些研究,我发现旧版本的NetBeans也存在相同的问题.应该不会在8.0.2版本中出现此问题. 链接

After some research I found same problem for old version of NetBeans. It was not supposed to have this issue to 8.0.2 version. Link

似乎系统中没有安装python.我在ControlPainel> System> AdvencedSystemsSettings> SystemProperties> EnviromentVariable上找不到环境变量,Python的PATH.或者似乎NetBeans无法识别Canopy Python.

It seems that there is no python installed in the system. I have no found Environment variables, PATH to Python at ControlPainel>System>AdvencedSystemsSettings>SystemProperties>EnviromentVariable .Or it seems that Canopy Python can not be recognize by NetBeans.

当我尝试从命令运行Python时,它会先加载Canopy库,然后显示python propmt">>>",如下所示:

When I try to run Python from command it loads Canopy libraries before to show python propmt ">>>" as you can see below:

我不知道如何解决此问题.我当时想卸载Cancopy并尝试手动安装python.还有别的主意吗?最后一个问题,Python可执行文件应该放在哪里?

I dont know how to solve this issue. I was think about to uninstall Cancopy and try to install python by hand. Is there another idea? One last question, where should be located the Python executable?

推荐答案

我遇到了相同的问题,并通过单独下载Python并将其手动添加到可用平台列表中来解决了该问题.这很容易做到,只需要几分钟.完成安装Python插件的说明后( https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_81 ),从 https://www.python.org/downloads/(我使用版本3.4.2).接下来,在Netbeans中打开新建项目"窗口,然后选择一个Python项目.单击下一步"后,单击"Python平台"下拉菜单旁边的管理..."按钮.将弹出一个名为"Python Platform Manager"的新窗口,并且所有字段均为空,因为尚未添加Python平台.这里的目标是添加您刚刚下载的Python版本,为此,请单击左侧面板上的新建"按钮并找到文件"python.exe".它应该在下载Python时创建的文件夹内.找到该文件后,单击打开"以将其添加到控制台命令".所有其他字段将立即填充必要的信息,并自动将该平台保存为选项.单击关闭"返回到新建Python项目"窗口,您下载的Python版本现在应列为可用平台.希望这会有所帮助!

I ran into the same problem and fixed the issue by downloading Python separately and manually adding it to the list of available platforms. It's very easy to do, and only takes a few minutes. After you're done following the instructions for installing the Python plugin (https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_81), download a supported version of Python from https://www.python.org/downloads/ (I went with version 3.4.2). Next, open the "New Project" window in Netbeans and choose a Python project. After clicking "Next", click the "Manage...." button located next to the "Python Platform" dropdown menu. A new window titled "Python Platform Manager" will pop up and all of the fields will be empty because a Python platform hasn't been added yet. The goal here is to add the version of Python you just downloaded, so to do that, click the "New" button located on the left hand panel and locate the file "python.exe". It should be inside of the folder that was created when you downloaded Python. When you find this file, click "Open" to add it to "Console Command". All of the other fields will be immediately populated with the necessary info and automatically save this platform as an option. Click "Close" to return to the "New Python Project" window and the version of Python you downloaded should now be listed as an available platform. Hope this helps!

这篇关于NetBeans 8.0.2无法识别python平台.如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆