1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-14 15:32:29 +00:00
soil/docs/installation.rst
2023-04-20 17:57:18 +02:00

65 lines
1.0 KiB
ReStructuredText

Installation
------------
Through pip
===========
The easiest way to install Soil is through pip, with Python >= 3.8:
.. code:: bash
pip install soil
Now test that it worked by running the command line tool
.. code:: bash
soil --help
#or
python -m soil --help
Or, if you're using using soil programmatically:
.. code:: python
import soil
print(soil.__version__)
Web UI
======
Soil also includes a web server that allows you to upload your simulations, change parameters, and visualize the results, including a timeline of the network.
To make it work, you have to install soil like this:
.. code::
pip install soil[web]
Once installed, the soil web UI can be run in two ways:
.. code::
soil-web
# OR
python -m soil.web
Development
===========
The latest version can be downloaded from `GitHub <https://github.com/gsi-upm/soil>`_ and installed manually:
.. code:: bash
git clone https://github.com/gsi-upm/soil
cd soil
python -m venv .venv
source .venv/bin/activate
pip install --editable .