GDAL Virtualenv Python 3.6 Installation

前端 未结 1 1537
面向向阳花
面向向阳花 2021-02-10 20:50

I am having a brutal time getting gdal installed. I have a fresh install of Ubuntu Mint with a virtualenv Python 3.6 environment that I am trying to get GDAL installed on. After

相关标签:
1条回答
  • 2021-02-10 21:32

    I solved it via:

    install the newest version of gdal-bin and libgdal-dev:

    sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
    sudo apt update
    sudo apt upgrade
    sudo apt install gdal-bin libgdal-dev
    

    My gdal version was 2.2.3, so maybe specifically install that one if this does not work.

    install using pip3:

    pip install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version`
    
    0 讨论(0)
提交回复
热议问题