首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python3.8GDAL找不到gdal-config

Python3.8GDAL找不到gdal-config
EN

Stack Overflow用户
提问于 2022-07-11 10:18:49
回答 1查看 157关注 0票数 0

错误

在这里输入图像描述1:https://i.stack.imgur.com/c3qQr.png

代码语言:javascript
复制
× Getting requirements to build wheel did not run successfully.
#8 17.82   │ exit code: 1
#8 17.82   ╰─> [2 lines of output]
#8 17.82       INFO:root:GDAL API version obtained from gdal-config: 2.4.0
#8 17.82       ERROR: GDAL >= 3.1 is required for rasterio. Please upgrade GDAL.
#8 17.82       [end of output]
#8 17.82   
#8 17.82   note: This error originates from a subprocess, and is likely not a problem with pip.
#8 17.82 error: subprocess-exited-with-error
#8 17.82 
#8 17.82 × Getting requirements to build wheel did not run successfully.
#8 17.82 │ exit code: 1
#8 17.82 ╰─> See above for output.
#8 17.82 
#8 17.82 note: This error originates from a subprocess, and is likely not a problem with pip.
#8 17.83 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
#8 17.83 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
EN

回答 1

Stack Overflow用户

发布于 2022-07-11 10:19:10

Fix GDAL & Python3.8 3.8

模块还是不正确的Python版本问题?

档案: dockerfile

代码语言:javascript
复制
FROM python:3.8.13-buster #by ubuntu only
RUN apt-get update && \
    apt-get install -y binutils libproj-dev gdal-bin ffmpeg libgdal-dev

COPY requirements.txt requirements.txt

RUN pip install -r requirements.txt

文件: requirements.text

代码语言:javascript
复制
scikit-learn
geovoronoi
matplotlib
rasterio==1.2.0
affine==2.3.1
attrs==21.4.0
certifi==2022.6.15
click==7.1.2
click-plugins==1.1.1
cligj==0.7.2
Fiona==1.8.21
geopandas==0.11.0
munch==2.5.0
numpy==1.23.1
packaging==21.3
pandas==1.4.3
pyparsing==3.0.9
pyproj==3.3.1
python-dateutil==2.8.2
pytz==2022.1
Shapely==1.8.2
six==1.16.0
snuggs==1.4.7
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72937003

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档