When you open a Python program in IntelliJ (or PyCharm), it doesn't automatically resolve package references by default.
I saw it officially, but it was a little difficult to understand, so I will summarize it here.
Open the Project Structure screen with File
> Project Structure
or ⌘ +;
in the menu.
SDK is not set in Project SDK.
Select Python SDK
⇛ ʻAdd Local from
New`.
Since I am using Anaconda in my environment, I will specify the following bus.
$ which python
/Users/username/anaconda/bin/python
Since I was able to set the SDK, ʻOK` as it is.
The IDE will automatically index the rest.
reference: http://stackoverflow.com/questions/24769117/how-do-i-configure-a-python-interpreter-in-intellij-idea-with-the-pycharm-plugin
Recommended Posts