1

I am trying to import plot_spatial_weights from pysal.viz.splot.libpysal

this what I am doing

from pysal.viz.splot.libpysal import plot_spatial_weights

and I get the error

ModuleNotFoundError: No module named 'pysal.viz'
emax
  • 6,965
  • 19
  • 74
  • 141

1 Answers1

0

If this problem occurred due to pysal 2.0, maybe switching to pysal 1.14 will wipe out this error. Check this topic: https://github.com/darribas/gds18/issues/8