Converting ArcGIS for Desktop Python code to ArcGIS Pro

As I mentioned earlier in this chapter, there aren't many differences between the Python code you would write for ArcGIS for Desktop and ArcGIS Pro. We've already discussed the primary differences between the two. The versions of Python used are quite different with ArcGIS for Desktop 10.3, which runs Python 2.7 and ArcGIS Pro 1.0, which runs Python 3.4. These two versions of Python are incompatible and there are some tools that you can use when migrating your existing code to ArcGIS Pro.

The first tool that we'll examine is the AnalyzeToolsForPro. This geoprocessing tool can be found in the Management toolbox. This tool analyzes Python scripts and custom geoprocessing tools, and toolboxes ...

Get Programming ArcGIS with Python Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.