.. currentmodule:: cf .. default-role:: obj .. highlight:: bash Installation ============ .. note:: For versions 3.x (Python 3) documentation, see https://ncas-cms.github.io/cf-python Dependencies ------------ See ``_ for the current list of dependencies. Install with conda ------------------ To install cf-python and cf-plot, download and install Anaconda Python 2.7. On the command line type :: conda install -c ncas -c conda-forge cf-python cf-plot udunits2=2.2.20 conda install -c conda-forge mpich esmpy The first line installs cf-python and cf-plot. The second installs esmpy, together with the netcdf-fortran and mpich requirements, which cf-python uses for regriding data. Install with pip ---------------- cf-python is available from the python package index (``_). :: $ pip install cf-python Install from source ------------------- Download the cf package from ``_ Unpack the library (replacing with the approrpriate release, e.g. ``2.2.4``):: $ tar zxvf cf-python-.tar.gz $ cd cf-python- To install the cf package to a central location:: $ python setup.py install To install the cf package locally to the user in the default location (often within ``~/.local``):: $ python setup.py install --user To install the cf package in the of your choice:: $ python setup.py install --home= Issues ------ Please raise any questions or problems at ``_