-1

我在 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?

谢谢!

4

1 回答 1

0

您可以做的最简单的事情是从 Christoph Gohlke 的网站下载它。您可以通过运行在虚拟环境中安装 whl 文件

pip install [path to the whl file]

在你的 pycharm 终端中。

于 2020-11-28T16:09:41.087 回答