Installing srlife ================= srlife is available in the `pypi `_ package repository and can be installed with `pip`. srlife uses python3 and requires several additional python packages, all of which are available pypi. srlife is compatible with python3 only. Install using the pip package manager ------------------------------------- The easiest way to install the package is to use the `pip` package manager, installing srlife from pypi automatically. Linux """"" .. code-block:: console pip install srlife MacOS """"" It is easiest to install srlife using a homebrew version of python, not the default system python. Go to `brew.sh `_ and follow the directions to install homebrew. Open up a terminal and run: .. code-block:: console brew install python pip3 install srlife `srlife` will then be available as a package through the homebrew version of python (often available as `python3` instead of `python`). Install from the github repository directly ------------------------------------------- If you want to use the current development version of srlife or if you want to also obtain the tutorial, example, and test files you can install the package directly from `github `_. In addition to the, cmake, BLAS, and LAPACK requirements you will need git and, optionally, the nose package to automatically run the tests. Ubuntu Linux 20.04 """""""""""""""""" The following installs the prerequisites, downloads srlife, sets up the python package, and runs the automated test suite. .. code-block:: console sudo apt install build-essential cmake libblas-dev liblapack-dev python3-dev python3-setuptools python3-pip python3-nose git clone https://github.com/Argonne-National-Laboratory/srlife.git cd srlife pip3 install --user wheel pip3 install --user -r requirements.txt nosetests3 Note the package is installed wherever the user executed the `git clone` command. Using the package outside this directory requires adding it to the `PYTHONPATH` environment variable.