Modules are modules not functions.
The distance module contains many functions. You need to choose the one that you want. If, for example, you wanted the usual euclidean distance between, say, (0, 0)
and (1, 2)
, then use:
In [6]: from scipy.spatial import distance
In [7]: distance.sqeuclidean( (0, 0), (1, 2) )
Out[7]: 5
You can read more about the many "distance" functions supported by this module here.