File > Project Structure > Platform Settings > SDKs
Python SDK
/Users/UserName/miniconda3/bin/python
File > Project Settings > Project > Project SDK
Run > Debug
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…)