Installation
============
Using PIP
---------
RobustNet is compatible with Python versions 3.10 through 3.13 and can be directly installed from PyPI using *pip*. It is recommended to first upgrade ``pip`` to the latest version:
.. code-block:: python
python -m pip install --upgrade pip
Then install RobusNet with:
.. code-block:: python
pip install robustnet
Alternatively, RobustNet can be installed from source by cloning the GitHub repository using the following commands (assuming `git `__ is installed):
.. code-block:: python
git clone https://github.com/Chaowu88/robustnet.git /path/to/robustnet
pip install /path/to/robustnet
.. Note::
It's recommended to install RobustNet within a virtual environment. Please refer to the Python `venv documentation `__ or the `Conda environment guide `__ for environment setup.
For large-scale simulations and improved computational efficiency, deploying RobustNet on a high-performance computing system with parallel exccution enabled is strongly recommended.
Optional solver installation
----------------------------
RobustNet uses ``SciPy`` `optimizers `__ by default for estimating reference fluxes. The ``NLopt`` optimization library is also supported but must be installed seperately. Please refer to their `guide `__ for instructions.