Install
This library requires the GraphViz to be installed.
Mac
We recommend using Homebrew to install GraphViz.
Open terminal and run the following command (assuming you have Homebrew installed)
brew install graphviz
Windows
Historically, installing Graphviz and PyGraphviz on Windows has been challenging. Fortunately, the Graphviz developers are working to fix this and their recent releases have much improved the situation.
For this reason, PyGraphviz 1.7 only supports Graphviz 2.46.0 or higher on Windows. We recommend either manually installing the official binary release of Graphviz
You may also need to install Visual C/C++, e.g. from here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Assuming you have Python and Visual C/C++ installed, we believe the following should work on Windows 10 (64 bit) using PowerShell.
Manual download:
Download and install 2.46.0 for Windows 10 (64-bit): stable_windows_10_cmake_Release_x64_graphviz-install-2.46.0-win64.exe
Linux
We recommend installing Graphviz using your Linux system's package manager. Below are examples for some popular distributions.
Ubuntu and Debian
sudo apt-get install graphviz graphviz-dev
Fedora and Red Hat
You may need to replace dnf
with yum
in the example below.
sudo dnf install graphviz graphviz-devel
Finally
After installing GraphViz according to your OS, you can install our > package and the other dependencies using pip
$ pip install DataStructureVisualiser
Credits to pygraphviz for specific instructions on downloading GraphViz.