NetBeans 8.0.2 not recognizing python plataform. How to solve this issue?

zwitterion picture zwitterion · Jan 20, 2015 · Viewed 14.3k times · Source

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

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: enter image description here

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

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.

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

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?

Answer

turnipHead picture turnipHead · Feb 4, 2015

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!