Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: "Python not configured"

Here is a screenshot of whats happening:

Python not configured

Basically, I execute everything via command line but edit the source in eclipse.
This error prevents autocomplete which is annoying.

I have gone to window>preferences>PyDev>Interpreter - Python and set the correct values but they don't stay and even when I hit apply they don't seem to take for the current session.

Any idea on what could cause this error message?

like image 869
KPG Avatar asked May 20 '12 00:05

KPG


People also ask

How do I enable Python in Eclipse?

Go to Window → Preferences. In the Preferences window, expand PyDev and select Interpreter-Python. Click "New..." and type Python32 for the Interpreter name. For the Interpreter executable, browse to your copy of Python (C:\Program Files\Python32\python.exe), and press Open.

Does Eclipse IDE work with Python?

Running Python from within Eclipse py, and Eclipse will recognize it as Python code. Type in some Python code (for instance: print 2+2 ), then right-click on the Python file you've created and select Run As >> Python run . You should see the output of your Python code in the console at the bottom of the Eclipse window.

How do I open the Python console in Eclipse?

To do this choose Window<Show View<Console as shown in the screen shot below. The next stage is to display the Python console in the Eclipse Console. When the Console window is displayed, several icons are shown on the right, include a screen icon with a +sign and a drop down menu as shown in the screen shot below.


2 Answers

Go to Window → Preferences. In the Preferences window, expand PyDev and select Interpreter-Python. Click "New..." and type Python32 for the Interpreter name. For the Interpreter executable, browse to your copy of Python (C:\Program Files\Python32\python.exe), and press Open.

like image 103
Mudassir Hussain Avatar answered Sep 30 '22 18:09

Mudassir Hussain


What also works is RClick --> PyDev --> Remove PyDev Project Config.

steps_screen_shoot

Please note that the error marker may not be removed even after a clean/build, you may have te delete the marker manualy (just select it and delete) then clean, build and run

P.S.: I couldn't find the "project nature" option mentioned in the voted answer.

like image 31
MHosafy Avatar answered Sep 30 '22 17:09

MHosafy