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

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 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题