I would like to install GDAL==2.0.1 on Ubuntu. A lot of possibilities are found on SO, but none did work for me. I'll give an overview of a selection of my attempts:
1. Using pip directly
pip install gdal==2.0.1
returns:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-xob38erk/gdal/
Note: ez_setup and setup_tools are installed
2. easy_install
easy_install GDAL==2.0.1
returns:
setuptools.sandbox.UnpickleableException:
gdal_config_error(FileNotFoundError(2, "No such file or directory: 'gdal-config'"),)
Set variables
sudo apt-get install build-essential python-all-dev
export BASE=~
export GDALVERSION='2.0.1'
derive a few others
export GDALFILE="gdal-${GDALVERSION}.tar.gz "
export GDALURL="http://download.osgeo.org/gdal/${GDALVERSION}/${GDALFILE}"
export GDALDIR="$BASE/gdal-${GDALVERSION}"
Download, install and compile for Python
cd $BASE
wget $GDALURL
tar -xvzf $GDALFILE
cd $GDALDIR
./configure --with-python
make
sudo make install
I get the same error as described by Jeremy G.
sudo apt-get install gdal-bin python-gdal
This runs with success, but no package gdal is known (with import gdal in python shell or pip freeze).
gdalas a package – Joost Döbken Sep 08 '16 at 14:40pip freezein ubuntu shell – Joost Döbken Sep 08 '16 at 14:50sudo apt-get install python-gdalI getpython-gdal is already the newest version.– Joost Döbken Sep 08 '16 at 15:12