developmentseed / landsat-util

A utility to search, download and process Landsat 8 satellite imagery
Creative Commons Zero v1.0 Universal
690 stars 147 forks source link

can not install on ubuntu 16.04 #245

Open skasberger opened 6 years ago

skasberger commented 6 years ago

I can not install landsat-util on my ubuntu 16.04 machine.

following error occurs:

cheeseman@t550 /my-data/apps % pip install landsat-util --user
Collecting landsat-util
Requirement already satisfied: numpy==1.10.4 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Collecting boto==2.39.0 (from landsat-util)
  Using cached boto-2.39.0-py2.py3-none-any.whl
Requirement already satisfied: requests==2.7.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: geocoder==1.9.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Collecting scikit-image==0.12.3 (from landsat-util)
Requirement already satisfied: six>=1.8.0 in ./anaconda3/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: termcolor==1.1.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: usgs==0.1.9 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Collecting polyline==1.3 (from landsat-util)
  Using cached polyline-1.3-py2.py3-none-any.whl
Requirement already satisfied: matplotlib==1.5.1 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Collecting rasterio==0.32.0 (from landsat-util)
  Using cached rasterio-0.32.0.tar.gz
Requirement already satisfied: scipy==0.17.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Collecting homura==0.1.3 (from landsat-util)
Requirement already satisfied: python-dateutil==2.5.1 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: click in ./anaconda3/lib/python3.6/site-packages (from geocoder==1.9.0->landsat-util)
Requirement already satisfied: ratelim in /home/cheeseman/.local/lib/python3.6/site-packages (from geocoder==1.9.0->landsat-util)
Requirement already satisfied: pillow>=2.1.0 in ./anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: dask[array]>=0.5.0 in ./anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: networkx>=1.8 in ./anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: requests-futures>=0.9.5 in /home/cheeseman/.local/lib/python3.6/site-packages (from usgs==0.1.9->landsat-util)
Requirement already satisfied: pytz in ./anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: cycler in ./anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in ./anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: affine in ./anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: cligj in ./anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: snuggs in ./anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: click-plugins in ./anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: pycurl in ./anaconda3/lib/python3.6/site-packages (from homura==0.1.3->landsat-util)
Collecting humanize (from homura==0.1.3->landsat-util)
Requirement already satisfied: decorator in ./anaconda3/lib/python3.6/site-packages (from ratelim->geocoder==1.9.0->landsat-util)
Requirement already satisfied: olefile in ./anaconda3/lib/python3.6/site-packages (from pillow>=2.1.0->scikit-image==0.12.3->landsat-util)
Requirement already satisfied: toolz>=0.7.3 in ./anaconda3/lib/python3.6/site-packages (from dask[array]>=0.5.0->scikit-image==0.12.3->landsat-util)
Building wheels for collected packages: rasterio
  Running setup.py bdist_wheel for rasterio ... error
  Complete output from command /my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5n5rexsr/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpv7acihkqpip-wheel- --python-tag cp36:
  WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/coords.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/vfs.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/tool.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/dtypes.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/transform.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/crs.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/warnings.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/features.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/enums.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/sample.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/warp.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/fill.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/errors.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/profiles.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/five.py -> build/lib.linux-x86_64-3.6/rasterio
  creating build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/helpers.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/info.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/calc.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/convert.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/bands.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/main.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/features.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/options.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/overview.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/sample.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/warp.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/merge.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  creating build/lib.linux-x86_64-3.6/rasterio/tools
  copying ./rasterio/tools/mask.py -> build/lib.linux-x86_64-3.6/rasterio/tools
  copying ./rasterio/tools/merge.py -> build/lib.linux-x86_64-3.6/rasterio/tools
  copying ./rasterio/tools/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/tools
  running egg_info
  writing rasterio.egg-info/PKG-INFO
  writing dependency_links to rasterio.egg-info/dependency_links.txt
  writing entry points to rasterio.egg-info/entry_points.txt
  writing requirements to rasterio.egg-info/requires.txt
  writing top-level names to rasterio.egg-info/top_level.txt
  reading manifest file 'rasterio.egg-info/SOURCES.txt'
  writing manifest file 'rasterio.egg-info/SOURCES.txt'
  running build_ext
  building 'rasterio._base' extension
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/rasterio
  gcc -pthread -B /my-data/apps/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cheeseman/.local/lib/python3.6/site-packages/numpy/core/include -I/my-data/apps/anaconda3/include/python3.6m -c rasterio/_base.c -o build/temp.linux-x86_64-3.6/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function
  rasterio/_base.c:263:22: fatal error: cpl_conv.h: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for rasterio
  Running setup.py clean for rasterio
Failed to build rasterio
Installing collected packages: boto, scikit-image, polyline, rasterio, humanize, homura, landsat-util
  Running setup.py install for rasterio ... error
    Complete output from command /my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5n5rexsr/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_zkl1ado-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/coords.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/vfs.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/tool.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/dtypes.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/transform.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/crs.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/warnings.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/features.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/enums.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/sample.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/warp.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/fill.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/errors.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/profiles.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/five.py -> build/lib.linux-x86_64-3.6/rasterio
    creating build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/helpers.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/info.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/calc.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/convert.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/bands.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/main.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/features.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/options.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/overview.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/sample.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/warp.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/merge.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    creating build/lib.linux-x86_64-3.6/rasterio/tools
    copying ./rasterio/tools/mask.py -> build/lib.linux-x86_64-3.6/rasterio/tools
    copying ./rasterio/tools/merge.py -> build/lib.linux-x86_64-3.6/rasterio/tools
    copying ./rasterio/tools/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/tools
    running egg_info
    writing rasterio.egg-info/PKG-INFO
    writing dependency_links to rasterio.egg-info/dependency_links.txt
    writing entry points to rasterio.egg-info/entry_points.txt
    writing requirements to rasterio.egg-info/requires.txt
    writing top-level names to rasterio.egg-info/top_level.txt
    reading manifest file 'rasterio.egg-info/SOURCES.txt'
    writing manifest file 'rasterio.egg-info/SOURCES.txt'
    running build_ext
    building 'rasterio._base' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/rasterio
    gcc -pthread -B /my-data/apps/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cheeseman/.local/lib/python3.6/site-packages/numpy/core/include -I/my-data/apps/anaconda3/include/python3.6m -c rasterio/_base.c -o build/temp.linux-x86_64-3.6/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function
    rasterio/_base.c:263:22: fatal error: cpl_conv.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5n5rexsr/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_zkl1ado-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-5n5rexsr/rasterio/
pip install landsat-util --user  4,92s user 1,13s system 107% cpu 5,625 total

looks like the c compiler can not execute all needed code for rasterio.

coolsteve11 commented 6 years ago

try # apt-get install libgnutls28-dev

diogocaribe commented 6 years ago

Are you using virtual environment to install it? Maybe, most of the troubles that you are passing will be solved with this solution. Regards

skasberger commented 6 years ago

@coolsteve11 installing the lib did not solve the problem.

@dogosousa tried it inside a python virtualenv. rasterio still threw an error, but a different one:

(venv) 1 cheeseman@t550 /my-data/projects/geo-data-sci (git)-[master] % pip install landsat-util
Collecting landsat-util
Requirement already satisfied: polyline==1.3 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: requests==2.7.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: scikit-image==0.12.3 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Collecting rasterio==0.32.0 (from landsat-util)
  Using cached rasterio-0.32.0.tar.gz
Requirement already satisfied: homura==0.1.3 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: scipy==0.17.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: usgs==0.1.9 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: six>=1.8.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: boto==2.39.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: numpy==1.10.4 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: matplotlib==1.5.1 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: python-dateutil==2.5.1 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: geocoder==1.9.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: termcolor==1.1.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: networkx>=1.8 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: dask[array]>=0.5.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: pillow>=2.1.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: affine in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: cligj in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: snuggs in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: click-plugins in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: pycurl in /my-data/apps/anaconda3/lib/python3.6/site-packages (from homura==0.1.3->landsat-util)
Requirement already satisfied: humanize in /home/cheeseman/.local/lib/python3.6/site-packages (from homura==0.1.3->landsat-util)
Requirement already satisfied: requests-futures>=0.9.5 in /home/cheeseman/.local/lib/python3.6/site-packages (from usgs==0.1.9->landsat-util)
Requirement already satisfied: click>=4.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from usgs==0.1.9->landsat-util)
Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: cycler in /my-data/apps/anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: pytz in /my-data/apps/anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: ratelim in /home/cheeseman/.local/lib/python3.6/site-packages (from geocoder==1.9.0->landsat-util)
Requirement already satisfied: decorator>=4.1.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from networkx>=1.8->scikit-image==0.12.3->landsat-util)
Requirement already satisfied: toolz>=0.7.3 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from dask[array]>=0.5.0->scikit-image==0.12.3->landsat-util)
Requirement already satisfied: olefile in /my-data/apps/anaconda3/lib/python3.6/site-packages (from pillow>=2.1.0->scikit-image==0.12.3->landsat-util)
Building wheels for collected packages: rasterio
  Running setup.py bdist_wheel for rasterio ... error
  Complete output from command /my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aes97dkc/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpoehu5i8wpip-wheel- --python-tag cp36:
  WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/coords.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/vfs.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/tool.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/dtypes.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/transform.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/crs.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/warnings.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/features.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/enums.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/sample.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/warp.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/fill.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/errors.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/profiles.py -> build/lib.linux-x86_64-3.6/rasterio
  copying ./rasterio/five.py -> build/lib.linux-x86_64-3.6/rasterio
  creating build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/helpers.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/info.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/calc.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/convert.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/bands.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/main.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/features.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/options.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/overview.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/sample.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/warp.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/merge.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  copying ./rasterio/rio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/rio
  creating build/lib.linux-x86_64-3.6/rasterio/tools
  copying ./rasterio/tools/mask.py -> build/lib.linux-x86_64-3.6/rasterio/tools
  copying ./rasterio/tools/merge.py -> build/lib.linux-x86_64-3.6/rasterio/tools
  copying ./rasterio/tools/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/tools
  running egg_info
  writing rasterio.egg-info/PKG-INFO
  writing dependency_links to rasterio.egg-info/dependency_links.txt
  writing entry points to rasterio.egg-info/entry_points.txt
  writing requirements to rasterio.egg-info/requires.txt
  writing top-level names to rasterio.egg-info/top_level.txt
  reading manifest file 'rasterio.egg-info/SOURCES.txt'
  writing manifest file 'rasterio.egg-info/SOURCES.txt'
  running build_ext
  building 'rasterio._base' extension
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/rasterio
  gcc -pthread -B /my-data/apps/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cheeseman/.local/lib/python3.6/site-packages/numpy/core/include -I/my-data/apps/anaconda3/include/python3.6m -c rasterio/_base.c -o build/temp.linux-x86_64-3.6/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function
  rasterio/_base.c:263:22: fatal error: cpl_conv.h: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for rasterio
  Running setup.py clean for rasterio
Failed to build rasterio
Installing collected packages: rasterio, landsat-util
  Running setup.py install for rasterio ... error
    Complete output from command /my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aes97dkc/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zjacgnjy-record/install-record.txt --single-version-externally-managed --compile:
    WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/coords.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/vfs.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/tool.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/dtypes.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/transform.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/crs.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/warnings.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/features.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/enums.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/sample.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/warp.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/fill.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/errors.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/profiles.py -> build/lib.linux-x86_64-3.6/rasterio
    copying ./rasterio/five.py -> build/lib.linux-x86_64-3.6/rasterio
    creating build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/helpers.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/info.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/calc.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/convert.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/bands.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/main.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/features.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/options.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/overview.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/sample.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/warp.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/merge.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    copying ./rasterio/rio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/rio
    creating build/lib.linux-x86_64-3.6/rasterio/tools
    copying ./rasterio/tools/mask.py -> build/lib.linux-x86_64-3.6/rasterio/tools
    copying ./rasterio/tools/merge.py -> build/lib.linux-x86_64-3.6/rasterio/tools
    copying ./rasterio/tools/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/tools
    running egg_info
    writing rasterio.egg-info/PKG-INFO
    writing dependency_links to rasterio.egg-info/dependency_links.txt
    writing entry points to rasterio.egg-info/entry_points.txt
    writing requirements to rasterio.egg-info/requires.txt
    writing top-level names to rasterio.egg-info/top_level.txt
    reading manifest file 'rasterio.egg-info/SOURCES.txt'
    writing manifest file 'rasterio.egg-info/SOURCES.txt'
    running build_ext
    building 'rasterio._base' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/rasterio
    gcc -pthread -B /my-data/apps/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cheeseman/.local/lib/python3.6/site-packages/numpy/core/include -I/my-data/apps/anaconda3/include/python3.6m -c rasterio/_base.c -o build/temp.linux-x86_64-3.6/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function
    rasterio/_base.c:263:22: fatal error: cpl_conv.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aes97dkc/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zjacgnjy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-aes97dkc/rasterio/