Instructions for installing anaconda python 3
- I like the Anaconda distribution of python becasue it is tailored for scientific users, and I use python 3.5 because it is always a good idea to use the most recent distribution of any software.
- Start here https://www.continuum.io/downloads
- Choose the python 3.5, 64 bit version, and I used:
- Grapical installer for Mac or Windows
- Command line installer for linux
- It added a line to .profile on my mac, or .bashrc on my linux machine.
- I need to log in with -X through VirtualBox order to use ipython on my linux machine.
- Anaconda comes with the excellent "conda" tool for updating or adding modules. This is most easily done from the command line, e.g.:
- conda update —all (two dashes)
- conda install netCDF4
- conda install xarray
- conda install -c conda-forge cmocean
- and there are a few modules that I couldn't get through conda, that I get using pip instead, again from the command line:
- pip install azure
- pip install seawater
- pip install gsw
- Other useful conda commands:
- McKinney (2013) Python for Data Analysis. O'Reilly, 452 pp. This is my favorite book so far. It has chapters on NumPy and Matplotlib. Also, he is the guy who created Pandas, a surprisingly useful module for messy data jobs like working with spreadsheets. The Appendix on Python Language Essentials is also a great reference for python itself.
- Donaldson (2009) Visual QuickStart Guide, Python, 2nd Edition. Peachpit Press. A reasonable place to start reading your way into python.