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

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(1条)

报告相同问题?

问题事件

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

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分