带有 Sublime 和 IDLE(Python)的 Geopandas

问题描述 投票:0回答:0

当我尝试在 Sublime 和 Python 的 IDLE 中运行我的 python 脚本时出现错误。但是我可以在命令提示符下运行相同的脚本没有问题。

我在本地安装了所有模块。whl。

我的脚本:

import geopandas
file = r'C:\WORK\testshape.shp'
geopandas.read_file(file)
print(file)

错误:Sublime 和 Python 的 IDLE

AttributeError: partially initialized module 'geopandas' has no attribute 'read_file' (most likely due to a circular import)
python sublimetext geopandas
© www.soinside.com 2019 - 2024. All rights reserved.