Setting up PyCharm to reference ArcPy?

theJones is correct, close all your projects and go to the program settings and search for Python Interpreters. Then select C:\Python26\ArcGIS10.0\python.exe and it should automatically add arcpy for you.

Pycharm Settings

To follow theJones and user5584, PyCharm 4 now stores the setting under "Project Interpreter" rather than "Python Interpreters."

With all projects closed, and PyCharm still open, go to "Configure" and then "Settings". "Project Interpreter" is under the "Default Project" menu on the left.

Click the settings gear in the upper-right, and then "Add Local." Navigate to C:\Python27\ArcGIS10.2\python.exe (or appropriate path for your version).

Hit Apply and you should have it. There may have been one more step to load or enable something at the bottom of the window, but I can't get that message to appear again and it didn't require anything but clicking on it.

Indexing took a couple minutes on a Python script I opened, and then code completion worked great.

screenshot of PyCharm settings

You can do this in the project Structure setting. Just add it as an sdk and it should work. I use intelliJ but pycharm should be the same.


Add this (Use your path) for the sdk path C:\Python26\ArcGIS10.0\python.exe

Give it a name and you should be good. Adding it as a global sdk you should be done and get the code completion.