ArcGIS Pro – Using Spyder as Python IDE with ArcGIS Pro

anacondaarcgis-proarcpyinstallation

I just installed ArcGIS Pro and would like to either import arcpy into anaconda, or use spyder as my IDE in GIS. I have tried two things:

  1. For ArcGIS Desktop you had to copy the .pth file from GIS to Lib/site-packages in anaconda. I did that but it didn't work.
  2. I went to this website, https://geonet.esri.com/blogs/dan_patterson/2016/07/17/anaconda-spyder-and-arcgis-pro, and I tried to find spyder.exe in my Scripts folder like the link says. It didn't exist. So I copied spyder.exe from Anaconda into that location. Then, when I launched my ide with ide from the command prompt within ArcGIS pro, it launched the default ide and not spyder.

Best Answer

I've found it easier to just install spyder into each python environment rather than trying to get a single spyder install to work with multiple environments.

To install spyder in ArcGIS Pro, open the Python Package Manager and install spyder from there or open your ArcGIS Pro terminal/activate your ArcGIS Pro environment and run conda install spyder

Related Question