Installation
Following Sections provide overview on how to install the tessif-phd version of tessif. Python 3.8 is recommend.
Standard
Linux
Make sure to have python3, graphviz and coinor-cbc installed on your system. Use your software management of choice to install them. Most Linux distributions have them in their repository.
Create a new directory and change to it:
mkdir /path/to/dir cd /path/to/dir
Clone the git repository for tessif-phd
git clone https://github.com/tZ3ma/tessif-phd.git
Create a new virtual environment and activate it:
python3 -m venv your_env_name source your_env_name/bin/activate
Make sure pip, setuptools and wheel are up to date:
pip install -U pip setuptools wheel
Install tessif-phd and it’s requirements:
pip install tessif-phd/
After installation is done you can check if everything went according to plan by executing tessif’s tests. Do so by entering:
python tests/nose_testing.py
Windows
See the development guide and replace step 9b with:
pip install .
Development
Linux
Make sure to have python3, graphviz and coinor-cbc installed on your system. Use your software management of choice to install them. Most Linux distributions have them in their repository.
Create a new directory and change to it:
mkdir /path/to/dir cd /path/to/dir
Clone the git repository for tessif-phd
git clone https://github.com/tZ3ma/tessif-phd.git
Create a new virtual environment and activate it:
python3 -m venv your_env_name source your_env_name/bin/activate
Make sure pip, setuptools and wheel are up to date:
pip install -U pip setuptools wheel
Install tessif-phd and it’s requirements:
pip install -e tessif-phd/[dev]
Currently there is a minor version conflict. After installation, update dash and ignore the error, since tessif-phd is not plotting via calliope:
pip install -U dash
After installation is done you can check if everything went according to plan by executing tessif’s tests. Do so by entering:
python tests/nose_testing.py(Optional) Build your own (html) documentation using Sphinx:
cd tessif-phd/docs/ make html
If the build was succesfull you can browse the documentation using your favorite browser by opening
tessif-phd/docs/build/html/index.html
Note
Sphinx supports a variety of different builders such as Latex or ePub.
Windows
Install all prerequisites:
Install python (Use 3.8.x for as there are no scipy wheels for 3.9 right now).
Install glpk
(add both the cbc binary and the glpk binary to PATH as described in the guide for glpk)
Install git
Install/Open PowerShell Core
Install graphviz: (See this guide)
Download graphviz for Windows.
Run the installer. Make sure to select one of the options to add graphviz to PATH.
Open the command prompt as administrator:
Press the Windows-Key
Type cmd
Click
Run as administrator
Type
dot -cand press EnterIf no warning message is returned, the installation was successfull.
Install Libxml2 (See this guide )
Create a new folder (if you wish to make it available for all users something like
C:\Program Files\Libxml2works)
Add Libxml2 to the PATH Variable
Go to
Control Panel\All Control Panel Items\System/Advanced system settings(Systemsteuerung\System und Sicherheit\System\Erweiterete Systemeinstellung).On the tab
Advanced (Erweitert)selectEnvironment Variables (Umgebungsvariablen).Click on
System variables (Systemvariablen)and add the desired path
Install the Microsoft Build Tools for C++
Open PowerShell (Core) as Administrator and create a new directory and change to it:
mkdir \path\to\dir cd \path\to\dir
Clone the git repository for tessif-phd
git clone https://github.com/tZ3ma/tessif-phd.git
Create a new virtual environment and activate it:
If you only have python 3.x.x installed:
python -m venv your_env_name \path\to\env\Scripts\activate
If you have multiple versions of python installed
(where 3.x would mean 3.8 at this point in time (2023-03-)):
py -3.x.x -m venv \path\to\env\ \path\to\env\Scripts\activate
Update pip
(with your activated virtual environment):
python -m pip install --upgrade pip
Make sure setuptools and wheel are up to date:
pip install -U setuptools wheel
Install PyGraphviz
Download the latest pygraphvix win .whl (For example
pygraphviz‑1.6‑cp38‑cp38‑win_amd64.whl) Make sure that the number behindcpmatches your python version. i.e cp38 for python 3.8.xInstall the scipy wheel using pip:
pip install path\to\whl such as 'Downloads\pygraphviz‑1.6‑cp38‑cp38‑win_amd64.whl'
Install tessif-phd and it’s requirements:
Change into the tessif-phd top folder (somhow on windows this is necessary)
cd tessif-phd
Install tessif-phd in development mode:
pip install -e ./[dev]
Currently there is a minor version conflict. After installation, update dash and ignore the warning, since tessif is not plotting via Calliope:
pip install -U dash
After installation is done you can check if everything went according to plan by executing tessif’s tests. Do so by entering (assuming you’re still inside of where you cloned tessif-phd to):
python tests/nose_testing.py
(Optional) Build your own (html) documentation using Sphinx:
cd tessif-phd/docs/ .\make htmlIf the build was succesfull you can browse the documentation using your favorite browser by opening
tessif-phd/docs/build/html/index.htmlNote
Sphinx supports a variety of different builders such as Latex or ePub.