当前位置:网站首页>必须指定GDAL API版本。提供一个路径使用GDAL_CONFIG gdal-config环境
必须指定GDAL API版本。提供一个路径使用GDAL_CONFIG gdal-config环境
2022-08-09 04:19:00 【"25'h"】
安装deepforestThe deep forest algorithm library reported an error:
pi install deepforest
错误提示:
Collecting fiona>=1.8
Using cached Fiona-1.8.21.tar.gz (1.0 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
安装geopandasLibraries are automatically installed whenFiona库,Actually the error is the installationFiona时报的,大概原因是GDAL没配置好
- 下载GDAL:
cp代表python版本,cp39就是python3.9,我是3.9
2. 安装GDAL
pip install GDAL-3.4.3-cp39-cp39-win_amd64.whl
- 设置变量
我的python项目路径是:D:\code_management\pythonProject,需要自己修改
set GDAL_DATA=%GDAL_DATA%;D:\code_management\pythonProject\venv\Lib\site-packages\osgeo\data\gdal
下载Fiona文件
链接安装Fiona
pip install Fiona-1.8.21-cp39-cp39-win_amd64.whl
- 安装deepforest
pip install deepforest
边栏推荐
猜你喜欢
随机推荐
欧拉22.02系统 mysql5.7 arm版本的安装包, 哪里能下载到?
【Pyspark】udf使用入门
Device Reliability vs. Temperature
自动化测试的生命周期是什么?
2022高压电工考试试题及答案
Flask框架实现异步处理请求
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:维纳滤波器Wiener Filter,LMS
阿里云天池大赛赛题(机器学习)——阿里云安全恶意程序检测(完整代码)
软件质效领航者 | 优秀案例•东风集团DevOps改革项目
整数倍数数列
【每日一题】761. 特殊的二进制序列
数据库指标是怎么个意思
"IP" command to configure network interface
全栈代码测试覆盖率及用例发现系统的建设和实践
337. Robbery III
NanoDet代码逐行精读与修改(三)辅助训练模块AGM
新一代CMDB构建方法,是能够给企业带来收益的
做现货白银前这些要诀应先记起来
[Server data recovery] A case of data recovery when the Ext4 file system cannot be mounted and an error is reported after fsck
OpenCV相机标定完全指南(有手就行)