Notes on resolving references to packages in Python projects in IntelliJ IDEA (PyCharm)

When you open a Python program in IntelliJ (or PyCharm), it doesn't automatically resolve package references by default.

screenshot-2017-02-12-123023.png

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.

スクリーンショット 2017-02-12 12.33.39.png

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

スクリーンショット 2017-02-12 12.37.34.png

Since I was able to set the SDK, ʻOK` as it is.

The IDE will automatically index the rest.

スクリーンショット 2017-02-12 12.40.10.png

reference: http://stackoverflow.com/questions/24769117/how-do-i-configure-a-python-interpreter-in-intellij-idea-with-the-pycharm-plugin

Recommended Posts

Notes on resolving references to packages in Python projects in IntelliJ IDEA (PyCharm)
Notes on nfc.ContactlessFrontend () for nfcpy in python
Notes on using code formatter in Python
Notes on using dict in python [Competition Pro]
To write to Error Repoting in Python on GAE
ABC125_C --GCD on Blackboard [Notes solved in Python]
How to make Python Interpreter changes in Pycharm
Notes on how to use StatsModels that can use linear regression and GLM in python
I tried to graph the packages installed in Python
[Road to intermediate Python] Install packages in bulk with pip
[Hyperledger Iroha] Notes on how to use the Python SDK
A note on how to load a virtual environment in PyCharm
A standard way to develop and distribute packages in Python
Notes on how to use marshmallow in the schema library
[Python] Allow pip3 packages to be imported on AWS Lambda
Notes on reading and writing float32 TIFF images in python
To flush stdout in Python
Web scraping notes in python3
Python package management in IntelliJ
Python notes to forget soon
Login to website in Python
[Python] Notes on data analysis
Update python on Mac to 3.7-> 3.8
Notes on installing Python on Mac
Speech to speech in python [text to speech]
How to develop in Python
Get Evernote notes in Python
Use Python on Windows (PyCharm)
Notes on imshow () in OpenCV
Notes on installing Python on CentOS
Post to Slack in Python
How to install OpenCV on Cloud9 and run it in Python
A game to go on an adventure in python interactive mode
Settings when writing Google App Engine / Python apps in Intellij Idea
How to use python put in pyenv on macOS with PyCall