Flipside-N 2022-04-06 14:03 采纳率: 100%
浏览 549
已结题

Python安装函数出错

Python版本3.9,编译器Pycharm

安装Pybob软件包时报错,最开始是提示pip版本不够新,更新后,还是出错。
报错提示如下:
Collecting pybob
Using cached pybob-0.26.2-py3-none-any.whl (89 kB)
Collecting gdal
Using cached GDAL-3.4.2.tar.gz (757 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting geopandas
Using cached geopandas-0.10.2-py2.py3-none-any.whl (1.0 MB)
Collecting scikit-image>=0.18
Using cached scikit_image-0.19.2-cp39-cp39-win_amd64.whl (12.6 MB)
Collecting numpy
Using cached numpy-1.22.3-cp39-cp39-win_amd64.whl (14.7 MB)
Collecting shapely
Using cached Shapely-1.8.1.post1-cp39-cp39-win_amd64.whl (1.3 MB)
Collecting fiona
Using cached Fiona-1.8.21.tar.gz (1.0 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status '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.

  • 写回答

2条回答 默认 最新

  • CSDN专家-HGJ 2022-04-06 15:01
    关注

    需要先下载对应版本的GDAL的whl文件安装,参考:
    https://blog.csdn.net/qq_40206371/article/details/120239760

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
  • 有问必答小助手 2022-04-10 12:42
    关注
    您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
    PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 4月18日
  • 已采纳回答 4月10日
  • 创建了问题 4月6日

悬赏问题

  • ¥15 MYSQL 订单的商品明细重复计算问题
  • ¥15 微信实时共享位置修改
  • ¥100 TG的session协议号转成直登号号后客户端登录几分钟后自动退出设备
  • ¥30 共模反馈回路的小信号增益
  • ¥15 arduino ssd1306函数与tone函数放歌代码不兼容问题
  • ¥70 0.96版本hbase的row_key里含有双引号,无法deleteall
  • ¥40 Ida Pro增加插件出现问题
  • ¥15 诊断性META分析合并效能的检验
  • ¥15 请问abb根据色块判断奇偶数并根据批次号放入仓储
  • ¥66 开发PC客户端一定也要开发上位机吗?