Climate Change
Tutorial class #0 for B2 Student, SA Department
March 2018
I. HOW TO INSTALL PYTHON ON WINDOWS
1) Install Python for Windows
[Link]
2) Download [Link] to C:\Python27\
[Link] can be downloaded at [Link] or
[Link]
Open Windows command windows (Start type “cmd” at the box “Search
programs and files”)
At the command prompt, go to C:\Python27\ by typing: “cd C:\Python27\
Type: python [Link]
3) Please note the Unofficial Windows Binaries for Python Extension Packages:
[Link]
You can download the needed binaries and to install it, pls read carefully the following
instructions:
4) To install Numpy
[Link]
download file numpy-1.11.3+mkl-cp27-cp27m-win_amd64.whl to the folder:
C:\Python27\Scripts
At the command prompt, navigate to the above directory and type:
[Link] install “numpy-1.11.3+mkl-cp27-cp27m-win_amd64.whl”
5) To install MatPLOTLIB/ NETCDF4/ PYPROJ/ BASEMAP
Go to [Link] to download
o matplotlib-1.5.3-cp27-cp27m-win_amd64.whl
o netCDF4-1.2.8-cp27-cp27m-win_amd64.whl
o pyproj-[Link]-cp27-cp27m-sin_amd64.whl
o basemap-1.1.0-cp27-cp27m-win_amd64.whl
Follow similar installation steps as for Numpy
II. HOW TO INSTALL PYTHON ON MacOS
III. HOW TO INSTALL PYTHON ON UBUNTU
1) Install python2.7
2) Download: [Link]
3) sudo python [Link]
4) sudo pip install numpy
5) sudo pip install matplotlib
6) sudo pip install netcdf4
7) Install Basemap
1. sudo pip install geos
2. sudo pip install proj
3. # download basemap source code from
[Link]
toolkits/basemap-1.0.7
4. # untar the source code, cd basemap-1.x.x/geos-3.3.3
5. export GEOS_DIR=/usr/local (or where you want)
6. ./configure --prefix=$GEOS_DIR
7. sudo make; sudo make install
8. cd .. (i.e. go to the basemap-1.x.x folder)
9. sudo python [Link] install