Skip to content

Install using conda forge (recommended)

Ana Ordonez edited this page Apr 3, 2023 · 6 revisions

We offer an installation for conda users under linux-64 or osx-64. Support for Windows is not available yet.

https://anaconda.org/conda-forge/pcmdi_metrics

All Platforms System Requirements

  • Install the Anaconda for Python 3.9 package (we recommend installing this for each user)
  • Make sure anaconda is in your PATH (assuming anaconda is installed in ${HOME}/anaconda
    • export PATH=${HOME}/anaconda/bin:${PATH} # for [ba]sh
    • setenv PATH ${HOME}/anaconda/bin:${PATH} # for [t]csh

Make sure you have no environment variables set from an old UV-CDAT installation in your PATH/PYTHONPATH,LD_LIBRARY_PATH etc

Bypassing firewalls

If your institution has tight ssl certificate/security issues try:

  • conda config --set ssl_verify False
  • binstar config --set ssl_verify False

Installing the PCMDI Metrics Package (PMP)

You can install the PCMDI Metrics package from the PCMDI conda-forge channel. For the best performance, use mamba. For faster installation without mamba, specify versions of python and pcmdi_metrics.

  • Create a new virtual environment and install PMP
    • Using mamba
      mamba create -n [YOUR_CONDA_ENVIRONMENT] -c conda-forge pcmdi_metrics
    • Using conda
      conda create -n [YOUR_CONDA_ENVIRONMENT] -c conda-forge python=[VERSION] pcmdi_metrics=[VERSION]
      e.g. conda create -n pcmdi_metrics -c conda-forge python=3.10 pcmdi_metrics=3.0.1
    • or
      • conda create -n [YOUR_CONDA_ENVIRONMENT]
      • conda activate [YOUR_CONDA_ENVIRONMENT]
      • conda install -c conda-forge python=[VERSION] pcmdi_metrics=[VERSION]
  • Install PMP in the current (or existing) virtual environment
    • mamba install -c conda-forge pcmdi_metrics
    • or
      conda install -c conda-forge pcmdi_metrics

To learn more about conda environments see: http://conda.pydata.org/docs/using/envs.html

Clone this wiki locally