How do I get IntelliJ to recognize common Python modules?

前端 未结 12 1307
甜味超标
甜味超标 2020-12-04 09:09

I\'m using IntelliJ 10 IDEA Ultimate Edition.

I\'ve created a new file Test.py, and IntelliJ has correctly switched to Python parsing mode. (I can confirm this by t

12条回答
  •  情话喂你
    2020-12-04 09:37

    Just create and add Python SDK

    File -> Project Structure -> Project -> Project SDK -> new
    

    and select the installation path of your Python interpreter (for example, C:\Python26 in windows and /usr/bin/python2.7 in Linux) as the home path.

    Related discussion: http://devnet.jetbrains.net/thread/286883

提交回复
热议问题