Instructions for installing anaconda python 3
- Start here https://www.continuum.io/downloads
- Choose the python 3.5, 64 bit version
- Grapical installer for Mac or Windows
- Command line installer for linux
- Mac: choose to put it in Applications - it created a folder called anaconda.
- It creates a new line in .profile.
- fjord: put the installer in in /home/parker, then do
- bash Anaconda3-2.4.0-Linux-x86_64.sh (or whatever is the latest on the continuum site)
- it added a line to my .bashrc
- I need to log in with -X through VirtualBox order to use ipython on fjord, or run the plotting code like pan_plot.py.
- Then at the command do (if needed):
- conda update —all (two dashes)
- conda install netCDF4
- conda install xarray
- pip install azure
- pip install seawater
- pip install gsw
- Other useful conda commands
- Some things that may or may not be issues in the latest version:
- To get matplotlib.pyplot figures as separate windows instead of inline in iPython do this (on a mac):
- python - Preferences - iPython console - Graphics - Graphics backend:
- change Backend from inline to automatic
- 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.