How do I get IntelliJ to recognize common Python modules?

前端 未结 12 1295
甜味超标
甜味超标 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:48

    Few steps that helped me (some of them are mentioned above):

    Open project structure by:

    command + ; (mac users) OR right click on the project -> Open Module Settings

    1. Facets -> + -> Python -> -> OK
    2. Modules -> Python ->
    3. SDKs ->

    Click OK.

    Open Run/Debug Configurations by: Run -> Edit Configurations

    1. Python Interpreter ->

    Click OK.

提交回复
热议问题