python GDAL 2.1 installation on Ubuntu 16.04

后端 未结 4 1038
有刺的猬
有刺的猬 2020-12-02 10:01

Here will be my sequence of command lines while trying to install gdal2.1 in a UBUNTU virtual machine. My virtual machine is a UBUNTU 16.04 LTS(64bit) I would need gdal2.1 a

4条回答
  •  余生分开走
    2020-12-02 10:19

    What worked for me is this: https://gis.stackexchange.com/a/193828/66527

    Below, I copy that answer:

    You can download GDAL 2.1 for Windows from GIS Internals. There is an installer and a portable version that doesn't require installation.

    GDAL 2.1 is available for Ubuntu 16.04 from the UbuntuGIS-Stable PPA

    sudo add-apt-repository -y ppa:ubuntugis/ppa
    sudo apt update 
    sudo apt upgrade # if you already have gdal 1.11 installed 
    sudo apt install gdal-bin python-gdal python3-gdal # if you don't have gdal 1.11 already installed 
    

    Note Ubuntu 16.04 comes with python 3.5 but uses python 2.7 as default

提交回复
热议问题