I am running ArcGIS Pro 2.2 and I have cloned my conda environment from Python command prompt. When I activate this environment and attempt to run Python 3.5 from the terminal, I can load arcpy as the cloned environment runs the python located at 'C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\python.exe'
. However, Spyder links to the python installed in the cloned environment and I get the following traceback:
File "<ipython-input-4-f7f77bfeaa96>", line 1, in <module>
from arcpy.geoprocessing import gp
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 66, 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
ImportError: DLL load failed: The specified module could not be found.
I have followed the directions located here and here, and the paths mirror a previous installation of ArcGIS Pro 2.0 from which I can use Spyder and arcpy together.
Does anyone know how to resolve this?
conda install spyder
. Then use that Spyder to run ArcGIS Pro arcpy scripts.%LocalAppData%\ESRI\conda\envs\arcgispro-py3-clone
". I just ranconda install spyder
from my activated env and then from the same command prompt, ranspyder
which opened and I was able toimport arcpy
from the spyder IPython console. My clone runs the python in the env, i.e "%LocalAppData%\ESRI\conda\envs\arcgispro-py3-clone\python.exe
" not from the original env, so I don't know how you've managed that.