我正在尝试从plot_spatial_weights
导入pysal.viz.splot.libpysal
这就是我在做什么
from pysal.viz.splot.libpysal import plot_spatial_weights
我得到了错误
ModuleNotFoundError: No module named 'pysal.viz'
答案 0 :(得分:0)
如果此问题是由于pysal 2.0引起的,则也许切换到pysal 1.14将清除此错误。检查以下主题:https://github.com/darribas/gds18/issues/8