Problem: After upgrading to ArcGIS Pro 2.2, geoprocessing tools fail to load and Python window returns "Failed to Initialize Python Interpreter"
After upgrading ArcGIS Pro to version 2.2, any of the following three errors occur:
Python window shows "Failed to Initialize Python Interpreter"
Upon starting ArcGIS Pro, the following message appears: "Failed to load system tools... Space Time Pattern Mining Tools.pyt." Additionally, no geoprocessing toolboxes appear in the Geoprocessing tab.
Upon opening the Space Time Pattern Mining toolbox, the dialog returns the error, "Tool has failed to open."
The following four files are missing from the folder C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3:
The use of ArcGIS Pro's Python Package Manager (as well as Conda from the command line) to install Python packages can trigger the updating of Python from 3.6.2 (shipped with ArcGIS Pro 2.1) to 3.6.6. When ArcGIS Pro updates, the package files are of a higher version than what is shipped with ArcGIS Pro 2.2 (Python 3.6.5). In this situation, the update behavior is to mark these files to not install with ArcGIS Pro 2.2.
Solution or Workaround
There are multiple methods for resolving this problem, depending on the system used. If ArcGIS Pro is not yet upgraded from 2.1 to 2.2, this issue can be avoided entirely by following the "ArcGISPro.msi" sequence.
Uninstall ArcGIS Pro 2.1.
Rename the folder '\ArcGIS\Pro' to 'ArcGIS\Pro21_leftovers'.