|
| 1 | +.. _installation: |
| 2 | + |
| 3 | +Installation |
| 4 | +============ |
| 5 | + |
| 6 | +The **ESMBenchmarkViz** package is not yet available on the conda-forge channel. To install it, you will need to clone the repository and install it locally using `pip`. The following steps will guide you through the process. |
| 7 | + |
| 8 | +Prerequisites |
| 9 | +------------- |
| 10 | + |
| 11 | +- Python 3.10 or higher |
| 12 | +- `git <https://github.com/git-guides/install-git>`_ and `pip <https://pip.pypa.io/en/stable/installation/>`_ installed on your system |
| 13 | +- `numpy <https://numpy.org/>`_, `bokeh <https://docs.bokeh.org/en/latest/>`_, `matplotlib <https://matplotlib.org/>`_ libraries installed (These will be installed automatically if you follow the conda environment setup in Step 2) |
| 14 | +- (Optional, but recommended) `conda <https://docs.conda.io/en/latest/>`_ for environment management |
| 15 | + |
| 16 | +Step 1: Clone the Repository |
| 17 | +---------------------------- |
| 18 | + |
| 19 | +Clone the repository from `GitHub <https://github.com/PCMDI/ESMBenchmarkViz.git>`_ to your local machine: |
| 20 | + |
| 21 | +.. code-block:: bash |
| 22 | +
|
| 23 | + git clone https://github.com/PCMDI/ESMBenchmarkViz.git |
| 24 | + cd ESMBenchmarkViz |
| 25 | +
|
| 26 | +Step 2: (Optional) Create and Activate a Conda Environment |
| 27 | +---------------------------------------------------------- |
| 28 | + |
| 29 | +It is recommended to use a `conda <https://docs.conda.io/en/latest/>`_ environment to manage dependencies. You can create and activate a new environment as follows: |
| 30 | + |
| 31 | +.. code-block:: bash |
| 32 | +
|
| 33 | + conda create -n esmbenchmarkviz -f conda_env/environment.yml |
| 34 | + conda activate esmbenchmarkviz |
| 35 | +
|
| 36 | +Step 3: Install the Package |
| 37 | +--------------------------- |
| 38 | + |
| 39 | +Install the package using `pip` from the root directory of the cloned repository: |
| 40 | + |
| 41 | +.. code-block:: bash |
| 42 | +
|
| 43 | + pip install . |
| 44 | +
|
| 45 | +Verifying the Installation |
| 46 | +-------------------------- |
| 47 | + |
| 48 | +After installation, you can verify that the package is installed by running: |
| 49 | + |
| 50 | +.. code-block:: bash |
| 51 | +
|
| 52 | + python -c "import ESMBenchmarkViz; print(ESMBenchmarkViz.__version__)" |
| 53 | +
|
| 54 | +If you see the version number printed without errors, the installation was successful. |
| 55 | + |
| 56 | +Troubleshooting |
| 57 | +--------------- |
| 58 | + |
| 59 | +If you encounter any issues during installation, please check that you have the required dependencies and that you are using a compatible Python version. For further assistance, refer to the `README.md <https://github.com/PCMDI/ESMBenchmarkViz/blob/main/README.md>`_ in the repository or open an issue on the `ESMBenchmarkViz GitHub page <https://github.com/PCMDI/ESMBenchmarkViz/issues>`_. |
| 60 | + |
| 61 | +---- |
| 62 | + |
| 63 | +For more information, visit the project repository: https://github.com/PCMDI/ESMBenchmarkViz |
0 commit comments