Ubuntu – Why Netbeans not detecting Python

netbeanspython

I am using Netbeans IDE 8.0 in my system 14.04 LTS.

I have installed Python plugin in Netbeans 8.0 by following this link.

And also I have download python-3.4.1.tgz from this link and installed it as following in terminal,

tar -xvf Python-3.4.1.tgz
cd Python-3.4.1/
./configure
make
sudo make install
./python

I got result at last as,

arul@arul-Aspire-5740:~/Python-3.4.1$ ./python
Python 3.4.1 (default, Sep 19 2014, 17:14:45) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

I confirmed by using following command in terminal

python3 -V

got response as,

Python 3.4.1

But when I click Auto Detect in Python Platform Manager (Netbeans IDE 8.0.1) am am not getting 3.4.1 in the list(Shown below).

enter image description here

How to solve it ?

UPDATE 1

I tried,

 arul@arul-Aspire-5740:~$ sudo find / -type f -executable -iname 'python*' -exec file -i '{}' \; | awk -F: '/x-executable; charset=binary/ {print $1}' | xargs readlink -f | sort -u | xargs -I % sh -c 'echo -n "%: "; % -V'

And I got result as,

[sudo] password for arul: 
/home/arul/Python-3.4.1/python: Python 3.4.1
/usr/bin/python2.7: Python 2.7.6
/usr/bin/python3.4: Python 3.4.0
/usr/bin/python3.4m: Python 3.4.0
/usr/local/bin/python3.4: Python 3.4.1
/usr/local/bin/python3.4m: Python 3.4.1

It's showing 3.4.1 but why not Netbeans detecting?

Best Answer

Select "New" there in the "Python Platform Manager".
Then It will open a dialog box.
Navigate to /usr/local/bin and select python3.4.
AT least that works on Windows.

If the dialog box does not appear, then in the command field of the new profile type

/usr/local/bin/python3.4

and in Console Command type the same thing. In platform name type Python 3.4.1 That will fix your problem.

Don't forget to award the bounty!

Related Question