TransWikia.com

Installing Python-GDAL with OSGEO?

Geographic Information Systems Asked by Asanda on January 18, 2021

I have been trying to install python gdal with OSGEO for some time now with no success. I have removed. I have tried with “Express and Advance” as suggested by OSGEO4W site.

The error is always “No module named ‘osgeo’ or gdal”, the command line also does not recognise an internal program.

3 Answers

Follow the 4-step instruction on this site: https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows

I found this site after hours of failing in installing osgeo.

Good luck.

Answered by Kevin on January 18, 2021

Summerizing the 4 steps from the answer of Khoa:

  • go to this site to download appropriate windows binaries (once you've clicked on the appropriate version of GDAL bianaries, select GDAL core to download the main fucntionnalities).

  • install GDAL with default (or not ?) settings

  • return to the page where you got GDAL core and download GDAL python bindings to work with your python version

  • install python bbindings

Answered by Clement on January 18, 2021

For ubuntu, run the following:

sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
pip install GDAL

Source: https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html

Also potentially of interest, the GDAL binaries https://gdal.org/download.html

Answered by User632716 on January 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP