Error: ImportError: no module named WeightsUtilities
In some instances, when running Spatial Statistics tools such as the Hot Spot Analysis (Getis-Ord Gi*) and Cluster and Outlier Analysis (Anselin Local Moran's I) tools in Python, the following error message is received:
ImportError: no module named WeightsUtilities
Below are some of the possible causes for the issue:
The path, C:\Program Files (x86)\ArcGIS\Desktop10.x\ArcToolbox\Scripts is not appended to the system PYTHONPATH variable.
ArcGIS Desktop and the Python instance are not installed on the same drive.