This is a mini guide to installing the spyder IDE so it works for ArcPro and is arcpy aware.
ArcPro is 64 bit and the version of Python it uses is 64 bit so you need an IDE that will work with a 64 bit version. As of version 2.4.2 of ArcPro it is using Python 3.6.8 in the Anaconda environment.
Important pre-install instructions
If you have gone to the Spyder website, downloaded it directly and installed it then that was the wrong thing to do! Uninstall it.
- In ArcPro click on Project tab then Python in the blue menu bar.
- Click on Manage Environments button and in the dialog box you will see the default arcgispro-py3 environment, this is the base install environment.
- To avoid corrupting this base environment, click on the clone icon and create a clone, you can choose the default name (arcgispro-py3-clone) or set it to something else. This will take several minutes to run as the environment is cloned.
- Make sure it is the Active environment, click OK and restart ArcPro.
- In ArcPro click on Project tab then Python in the blue menu bar. Make sure your cloned environment is the active environment.
- Click on the Add Packages button.
- Find Spyder and then click on the Install button in the panel to the right. Again this will take several minutes for it to install.
- That's it you just installed a version of the spyder IDE that will work with ArcPro and is aware of the arcpy module.
Post Install instructions
Having installed spyder how do you actually run it? Well the way I do that is to create a short cut to it and place that on my desktop. You will find the application here:
xxx = Your user login
yyy = Your chosen name for the cloned environment
- Open file explorer and navigate to spyder location.
- Right click on the application and send to desktop to create a shortcut.
- Optionally right click on the newly created shortcut, select properties and set the icon for the application, the ico file is in the same folder location as the application.
My desktop icons: