Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 pysal 使用该代码打开文件:
import pysal f=pysal.open()
这是我得到的回应:
AttributeError: module 'pysal' has no attribute 'open'
我做错了什么?
pysal 发布了版本 2open的重大更改。不再是顶级导入。
open
您仍然可以使用 pysal 打开 shapefile,但您需要先导入pysal.lib.io.open
pysal.lib.io.open
import pysal.lib.io.open pysal.lib.io.open('Path/to/file.shp')