Hello,
I'm working on setting up an environment that can work with Spyder 5 and ArcGIS Pro. I'm on a fresh installation of 3.0. I have cloned the default environment in the new Package Manager, and it is named arcgispro-spy5. I created this clone so I can install Spyder in the cloned environment. When I attempt to import arcpy, I get this error:
(arcgispro-spy5) C:\Users\phwh9568\AppData\Local\ESRI\conda\envs\arcgispro-spy5>python
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:50:36) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import arcpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 77, in <module>
from arcpy.geoprocessing import gp
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in <module>
from ._base import *
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in <module>
import arcgisscripting
File "C:\Users\phwh9568\AppData\Local\ESRI\conda\envs\arcgispro-spy5\lib\site-packages\arcgisscripting\__init__.py", line 131, in <module>
from ._arcgisscripting import *
ImportError: DLL load failed while importing _arcgisscripting: The specified module could not be found.
I get this whether I do it in the command prompt or from Spyder. But, if I switch the environment in my command prompt back to the default arcgispro-py3 environment, I'm able to import arcpy just fine.
What is going on here? Does anyone have guidance on how to correct this?
Thanks,
Phil