Hi, we try to use the python api for ArcGIS Pro 3.2. Unfortunately, we meet an error when importing arcpy.
What we do is to create an anaconda environment and install arcpy:
conda create -n arcgisexporter python=3.9
conda install arcpy=3.2 -c esri
When executing a python file in this repository with just the line "import arcpy", I get a the following error:
ImportError: DLL load failed while importing _arcgisscripting: The specified module could not be found.
ArcGIS Enterprise 3.2.2 is installed on the same machine and running.
Solved! Go to Solution.
Okay, I got it working by first installing arcgis and then arcpy-base.
install arcpy-base which provides the minimum requirements for arcpy
Thank you @DanPatterson, but the error remains the same even when I install arcpy-base.
Could it be the case that I am not allowed to install arcpy in an empty conda environment that is not based on the arcgispro-py3 environment that comes with the conda installation of ArcGIS Pro?
Okay, I got it working by first installing arcgis and then arcpy-base.