在Python中导入plot_spatial_weights时出错

时间:2020-03-11 10:25:21

标签: python pysal

我正在尝试从plot_spatial_weights导入pysal.viz.splot.libpysal

这就是我在做什么

from pysal.viz.splot.libpysal import plot_spatial_weights

我得到了错误

ModuleNotFoundError: No module named 'pysal.viz'

1 个答案:

答案 0 :(得分:0)

如果此问题是由于pysal 2.0引起的,则也许切换到pysal 1.14将清除此错误。检查以下主题:https://github.com/darribas/gds18/issues/8