Problem trying to run Python 2.7 and 3.4 in Eclipse

I have installed Python 3.4

and am currently using Python 2.7

. I want to create a project in Python 3.4

, but when I go to Run -> Run Configurations and then try to create a new entry in Python Run, I see that C: \ Python34 does not appear. Also, when I try to create a new project, the "Grammar Version" will only be up to 3.0. I don't know how to solve this.

Edit . Perhaps this is because I didn't install Python 3.4

correctly?

thank

+3


source to share


1 answer


I am assuming you are using PyDev. I don't know if there are other alternatives, but what I am using for Python in Eclipse.

  • Right-click the project folder in the Package Explorer view and select Properties.
  • Select "PyDev - Translator / Grammar"
  • Select the appropriate grammar version and interpreter if these options contain the required Python version.
  • If not, click "Click here to configure an interpreter that is not listed."
  • Click "New" and specify the name of the interpreter (for example, python3.4) and the path to the executable file (C: \ Python34)


Once you have done this, you will see the option to select your Python 3.4 interpreter under Launch Configuration> Interpreter. It will be displayed using the interpreter name specified in step 5.

+3


source







All Articles