我在 Windows 10 中使用 Pycharm,我需要导入 Pysal 以使用带有 Pandas 的 DBF 文件进行一些数据转换。
为此,我有:
import pysal as ps
import pandas as pd
db = ps.open(dbfile) #Pysal to open DBF
d = {col: dbfile.by_col(col) for col in dbfile.header}
我必须安装 pysal 包,但是当我运行“ pip install pysal
”时出现以下错误:
raise OSError("could not find or load %s" % lib_name)
OSError: could not find or load spatialindex_c-32.dll
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
如何在我的环境中安装 pysal?
谢谢!