|
|
|
10 April 2019
|
|
|
|
|
|
|
|
**Installation process**
|
|
|
|
|
|
|
|
In order to use HyMu, you need to be on the Ubuntu OS.
|
|
|
|
If you are on Windows, is it possible to install Ubuntu from the windows Store. If this step is done without any problem or if you already have a working Ubuntu, go to step 2. If not, follow the tutorial:
|
|
|
|
https://korben.info/installer-shell-bash-linux-windows-10.html
|
|
|
|
|
|
|
|
|
|
|
|
For the following installation, you’ll need to log in as a root (if you are not already)
|
|
|
|
You need ubuntu 14.04+ for HyMu to work properly. You can check your release version with
|
|
|
|
>lsb_release -a
|
|
|
|
If you don’t have the lsb command, you can use
|
|
|
|
> apt-get install lsb
|
|
|
|
to install the lsb package.
|
|
|
|
|
|
|
|
If your release is not 14.04+, you can update your release with
|
|
|
|
|
|
|
|
> apt-get update
|
|
|
|
> apt-get upgrade
|
|
|
|
|
|
|
|
You’ll also need a python release 3.4.3+
|
|
|
|
> python3 -V
|
|
|
|
To check the python version.
|
|
|
|
Install the following packages on ubuntu :
|
|
|
|
>apt-get install python3-pip
|
|
|
|
(it’s a package module that can install packages for python)
|
|
|
|
A pip version 8.1.1 is enough (it is the default one when installed by Ubuntu)
|
|
|
|
To check the pip version
|
|
|
|
>pip3 -V
|
|
|
|
|
|
|
|
To get the Petri Nets figures, you’ll need graphviz, obtainable with :
|
|
|
|
>sudo apt-get install graphviz
|
|
|
|
|
|
|
|
Then, you can install the needed python packages. You’ll find a requirements.txt in the hymu repertory
|
|
|
|
> pip3 install package_name
|
|
|
|
Or you can also use
|
|
|
|
> apt-get install python3-package_name
|
|
|
|
I do not recommend doing this, as the dependencies may overlap with pip and cause troubles.
|
|
|
|
|
|
|
|
Install the following packages : numpy ; pandas ; termcolor ; matplotlib ; scipy ; cython ; ipython ; snakes ; tk
|
|
|
|
You can use the requirements.txt with the following command :
|
|
|
|
> pip3 install -r requirements.txt
|
|
|
|
You can also install the packages with the following command :
|
|
|
|
> pip3 install numpy pandas termcolor matplotlib scipy cython ipython snakes
|
|
|
|
For the tk package, only the following line works :
|
|
|
|
> apt-get install python3-tk
|
|
|
|
|