This page is no longer maintained, and may be out of date.
Before you start
You should have Anaconda (or Miniconda) and IntelliJ installed and working.These instructions refer to Miniconda exclusively, but will also work with Anaconda Distribution.
Set up IntelliJ using Miniconda
Find the location of your Miniconda Python executable::Within IntelliJ
-
Go to
File > Project Structure > Platform Settings > SDKs
- Click the Add (+) icon
-
Choose
Python SDK
-
Enter the location of your Miniconda Python executable
/Users/UserName/miniconda3/bin/python
Substitute your actual path to Miniconda that you found in the previous step. -
Go to
File > Project Settings > Project > Project SDK
- Select from the drop-down: Python 3.6.0 (~/miniconda3/bin/python…)
-
Go to
Run > Debug
- Click the Add (+) icon
-
Select
Python
and then enter the following: Name: MyProject Script: /Users/UserName/MyProject/my_file.py Use Specified Interpreter: Python 3.6.0 (~/miniconda3/bin/python…)