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+ because it is a good idea to use the most recent distribution of any software.
- Start here https://www.continuum.io/downloads
- Choose the python 3.6 (or most recent), 64 bit version, and I used:
- Grapical installer for Mac or Windows
- Command line installer for linux
- I chose to put it in /Applications.
- It added a line to .profile on my mac, or .bashrc on my linux machine (then you have to source this to get it to work right away).
- 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 modules. This is most easily done from the command line, e.g.:
- conda update —all (two dashes)
- For other modules I install using pip instead (after a lot of trouble with the version of netCDF4 from conda), again from the command line, these are my standard intalls:
- pip install netCDF4
- pip install azure
- pip install seawater
- pip install gsw
- pip install cmocean (Kristen Thyng's nice colormaps)
- 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.