Select to view content in your preferred language

Python Scripting for Geoprocessing Workflows (for ArcGISPro 2.3) - Arcpy Not Able to Import into PyCharm

08-26-2019 03:28 PM
New Contributor III

Hello All,

I am working through ESRI's tutorial workflow "Python Scripting for Geoprocessing Workflows". I have downloaded PyCharm and went through the steps in the exercise to configure PyCharms Settings to use the python interpreter available through C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe. However, when I try to access arcpy via the statement "import arcpy" in the PyCharm Python Console, I get the error:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Program Files\JetBrains\PyCharm Edu 2019.2\helpers\pydev\_pydev_bundle\", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'arcpy'

Which tells me that it is not finding acrpy in my PATH. Does anyone know how to fix this? Any help is greatly appreciated.

Thank you


0 Kudos
1 Reply
MVP Esteemed Contributor

Sharing with Python‌ since this is an ArcPy question and not ArcGIS API for Python.

0 Kudos