How to Solve NameError: name 'cKDTree' is not defined -- scipy

Solution: Import the 'cKDTree' module

To Solve the error, add the following line to the top of your code.

from scipy.spatial import cKDTree

 

For more information:
Python scipy cKDTree