#15 ModuleNotFoundError: No module named 'graphviz'

  • Solution 1. for "Ubuntu 20.04.4 LTS”:
  • Solution 1. for "Ubuntu 20.04.4 LTS”
  • Solution 2: Try pip install
  • Solution 3: Try conda install
  • Original Problem was:
  • Attempts that didn’t work

Solution 1. for "Ubuntu 20.04.4 LTS”:

sudo apt-get install graphviz

Success! output hello.svg below

image

Solution 1. for "Ubuntu 20.04.4 LTS”

sudo apt-get install graphviz

Solution 2: Try pip install

python -m pip install graphviz

Solution 3: Try conda install

Can take a very long time.

conda install -c anaconda graphviz

Output during installation:

Original Problem was:

After successfully downloading k2 https://k2-fsa.github.io/k2/installation/conda.html, I tried to use the graphviz package. Got ModuleNotFoundError: No module named 'graphviz'

Attempts that didn’t work

Didn’t work: https://k2-fsa.github.io/k2/installation/conda.html

conda install -c anaconda graphviz

partial output that shows that it was installed but actually: “ModuleNotFoundError: No module named 'graphviz'”

also didn’t work

np@np-INTEL:~$ conda install graphviz=2.50.0 -c pkgs/main

pip installation also didn’t work, couldn’t locate dot package

Ask questions at: https://github.com/npovey/speech/discussions