DriverError: C:\Users\Administrator\可视化动图.qgs: No such file or directory Traceback: File "C:\Users\Administrator\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "D:\Users\streamlit可视化\app.py", line 2, in <module> data = gpd.read_file(r'C:\Users\Administrator\可视化动图.qgs') File "C:\Users\Administrator\anaconda3\lib\site-packages\geopandas\io\file.py", line 248, in _read_file return _read_file_fiona( File "C:\Users\Administrator\anaconda3\lib\site-packages\geopandas\io\file.py", line 289, in _read_file_fiona with reader(path_or_bytes, **kwargs) as features: File "C:\Users\Administrator\anaconda3\lib\site-packages\fiona\env.py", line 457, in wrapper return f(*args, **kwds) File "C:\Users\Administrator\anaconda3\lib\site-packages\fiona\__init__.py", line 308, in open colxn = Collection( File "C:\Users\Administrator\anaconda3\lib\site-packages\fiona\collection.py", line 243, in __init__ self.session.start(self, **kwargs) File "fiona\ogrext.pyx", line 588, in fiona.ogrext.Session.start File "fiona\ogrext.pyx", line 143, in fiona.ogrext.gdal_open_vector
时间: 2023-07-03 21:30:56 浏览: 203
matlab匹配滤波代码-QGS:QGS是一种降维方法,可以创建有意义的遗传变量
这个错误提示显示找不到指定的文件。请确保你的路径是正确的,文件名也是正确的。你也可以尝试使用绝对路径,例如:
```
data = gpd.read_file(r'C:\Users\Administrator\可视化动图.qgs')
```
如果文件确实存在,但仍然出现此错误,请确保你有足够的权限读取该文件。
阅读全文