I found two problems with installing Rasterio on 14.04
- The .c files in Rasterio source distributions (on PyPI) don't compile on 14.04. Generating source for the sdists using Cython 0.20.1 should fix these issue. In the meanwhile, the workaround is to install rasterio from GitHub and use Cython to generate the .c files locally.
- Ubuntu 14.04 has no venv for python 3. In a launchpad issue I found that it's a complicated policy issue and there's no fix shipped. The workaround is to create a virtual environment using a python2 virtualenv.
wget the script in this gist, make it executable, and run it to install rasterio and its dependencies on 14.04. After it finishes, type source rasterio/bin/activate
to enter the virtual environment with rasterio installed.
Rasterio 0.13.2 will fix #1 above, after which you can just do pip install rasterio==0.13.2
.