python2安装gdal Dockerfile

11 篇文章 1 订阅

python2安装gdal Dockerfile

FROM 基础镜像

RUN \
    yum -y install python27-tkinter tk-devel && \
    pip install --no-cache-dir -i https://pypi.doubanio.com/simple --trusted-host=pypi.doubanio.com  matplotlib==2.2.5

# 先下载相关依赖到GDAL目录
RUN \
    yum remove -y gdal* && \
    yum update -y nss nss-util nspr curl && \
    yum install -y python-devel libffi-devel openssl-devel bzip2 && \
    cd /tmp/ && mkdir dist && cd dist && \
    wget http://download.osgeo.org/proj/proj-4.9.3.tar.gz && \
    tar xf proj-4.9.3.tar.gz && cd proj-4.9.3 && ./configure && make -j8 && make install && \
    cd /tmp/dist && wget http://download.osgeo.org/geos/geos-3.6.2.tar.bz2 && \
    tar xjf geos-3.6.2.tar.bz2 && cd geos-3.6.2 && ./configure && make -j8 && make install && \
    cd /tmp/dist && wget http://download.osgeo.org/gdal/2.2.0/gdal-2.2.0.tar.gz && \
    tar xf gdal-2.2.0.tar.gz && cd gdal-2.2.0 &&  ./configure && make -j8 && make install && \
    pip install -U numpy==1.16.4 GDAL==2.2.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com && \
    \
    rm -rf  /tmp/dist
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值