简体   繁体   中英

Error while import plot_spatial_weights in Python

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'

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM