How to specify Python Interpreter

Hi,

I can't figure out how to set up a Python project in Intellij IDEA Ultimate 9.x, Build IU-94.273.

Specifically, it's not clear how to get the ide to point to the Python interpreter.

Here are the steps I'm taking:

1.          Create New Project
2.          Create Project from Scratch
3.          Name the files & folders, & select Python Module type

4.          Now IDEA tells me to specify the Python interpreter.  But when I click Configure, it just points to the Configure JDK screen.

             Will IDEA work with the standard Windows interpeter at http://www.python.org/, or do I need to locate the path to the Python plugin?


             I've worked with Java in previous versions of IDEA, as well as Ruby, but the exact mechanism for creating a non-Java project escapes me.

6 comments
Comment actions Permalink

Hello DChild,

You need to create a JDK of type "Python SDK" (yes, the terminology is confusing)
and select the installation path of your Windows Python interpreter (for
example, C:\Python26) as the home path.

I can't figure out how to set up a Python project in Intellij IDEA
Ultimate 9.x, Build IU-94.273.

Specifically, it's not clear how to get the ide to point to the Python
interpreter.

Here are the steps I'm taking:

1.          Create New Project
2.          Create Project from Scratch
3.          Name the files & folders, & select Python Module type
4.          Now IDEA tells me to specify the Python interpreter.  But
when I click Configure, it just points to the Configure JDK screen.

Will IDEA work with the standard Windows interpeter at
http://www.python.org/, or do I need to locate the path to the Python
plugin?

I've worked with Java in previous versions of IDEA, as
well as Ruby, but the exact mechanism for creating a non-Java project
escapes me.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Yep, works great.  Thanks, Dmitry.

0
Comment actions Permalink

Can't you improve this? It's seams to be too hidden inside IntelliJ.

0
Comment actions Permalink

Hello Sorin,

That's actually one of the reasons why PyCharm exists as a standalone product.
The Python support in IntelliJ IDEA has to live within the general module/SDK/facet
framework of IntelliJ.

Can't you improve this? It's seams to be too hidden inside IntelliJ.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi Dmitry,

I will use this opportunity to send some feedback regarding product configuration of IntelliJ - I find them really confusing and hard to choose a product.

Today people are working in multiple "languages" at the same time, for example in my case is Python, HTML/CSS/JS, PHP and Perl and I was surprised to see that I in PyCharm I do not have even syntax highlight for PHP files.

Also, browsing your website to find the proper product for your need is an suboptimat experience, maybe it would be a good idea to find a way to merge these products without decreasing the user experience, maybe something like "enable support for: [ ] tech1, [ ] tech2.

Also, it would be great if this could be configurable at project level.

BTW, For the moment I am testing Xena EAP, but I can't disable Java support in it.

Have nice day!
Sorin

0
Comment actions Permalink

Srsly... 7 years later and this is still confusing AF.  What the F is going on over at IntelliJ that this workflow is considered Ok?  So many tickets and so much feedback about this glaring problem makes one think that IntelliJ is on some other planet.  

0

Please sign in to leave a comment.