I just wanted to draw a simply directed graph that didn't look like shit in ubuntu, python3. Everything was broken or complicated or both, so I did this. Note: It works without the fucking gts triangulation library compile flag that people have been asking to get into the repository for ten years. Edit: Needed to get it to work for Windows too.
sudo apt-get install python3
sudo apt-get install python3-venv
cd ~/Easy-Digraph-Draw/
python3 -m venv ./my-venv
source ./my-venv/bin/activate
pip3 install graphviz
pip3 install pygraphviz
python3 ./gviz_simple.py
deactivate
- Install MSFT C++ compiler.
- Install Anaconda for Win AMD64, Python3.
- Install graphviz for Win.
- Add
C:\Program Files (x86)\Graphviz2.38\bin
to your PATH environment variable. - Download pygraphviz-1.3.1-cp34-none-win_amd64.whl.
- Create a Conda environment with Python version 3.4:
conda create --name digraphs python=3.4 anaconda
. - Enter the environment:
activate digraphs
. - Install pygraphviz using pip3:
pip install pygraphviz-1.3.1-cp34-none-win_amd64.whl
. - Run example:
python3 ./gviz_simple.py
. - Exit the environment:
deactivate