-
Install Anaconda (I'm using Anaconda-2.0.1 [64-Bit - Python 2.7])
-
Create a new virtual environment (Skip this step on Windows, trust me, it'll be easier):
conda create -n scipygis pandas ipython-notebook
source acivate scipygis
conda install pip-
If you don't want to use something like Anaconda (or Enthought Canopy), I still strongly recommend you use
virtualenvs and probably evenvirtualenvwrapper. -
If you don't already have it, you might need to install
cython
conda install cython- Install required packages (on Windows, use binaries from here for
shapely,pyproj, andrasterio)
conda install matplotlib
conda install shapely
conda install fiona
pip install pyproj
pip install descartes
pip install rasterio- Install
geopandas(important!)
pip install git+git://github.com/kjordahl/geopandas.git- Install
cartopy(on Windows, use binaries from here forcartopy)
pip install pyshp
pip install Cython
pip install git+git://github.com/SciTools/cartopy.git- Alternatively (better?), you can install
cartopyviacondalike this:
conda remove geos shapely cartopy
conda install -c rsignell cartopy- mplleaflet (for making slippy maps)
pip install git+git://github.com/mpld3/mplexporter.git
pip install git+git://github.com/jwass/mplleaflet.git- geojson.py for shooting data to the web!
pip install git+git://github.com/jwass/geojsonio.py.git- Install
basemap, a common package for making static maps
conda install basemap- Install
psycopg2for interacting with PostGIS
pip install psycopg2- Go to the official QGIS page for details, or install via
brewon OSX,apt-geton Linux, orOSGeo4Won Windows.
- Here is the install guide from a similar course last year.
- Linux Initial Setup
sudo add-apt-repository -y ppa:ubuntugis/ppa
sudo apt-get update -qq
sudo apt-get install -y gdal-bin libgdal-dev- OSX Initial Setup
- First install
brew:ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" - Then update and install
gdal
- First install
brew doctor
brew update
brew install gdal
-
Windows Initial Setup
-
If you don't already have it, you'll need to install
git -
In some cases, it may be better to
pip install shapelythan toconda install shapely, particularly when usingcartopy. -
The
openpyxldependency ofpandasmay produce a funny warning:UserWarning: Installed openpyxl is not supported at this time. Use >=1.6.1 and <2.0.0- To fix this warning, try the following:
pip install openpyxl
pip uninstall openpyxl
pip install openpyxl==1.8.6 - On vanilla Ubuntu, you might need to install
g++before installingrasterio:
sudo apt-get install g++
-
On OSX (Mavericks), if you don't already have developer tools installed,
pip install pyprojwill probably fail (due to missinggcc) and then ask you if you want to install them, so click 'yes' and then rerunpip install pyproj. -
On Windows,
sourceis not needed when activating a virtual environment if you are using the Anaconda Command Prompt:activate scipygis.