Python GDAL: pip install --no-install GDAL fails

后端 未结 3 1153
太阳男子
太阳男子 2021-01-12 04:47

I am trying to install GDAL in virtual environment based on the various solutions out there.

However the download itself already fails:

$ pip install         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-12 05:33

    after install gdal using these steps on host:

    sudo apt-get install gdal-bin
    sudo apt-get install libgdal-dev
    

    After that use

    pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
    

    This should work like charm

提交回复
热议问题