Open guifeliper opened 5 years ago
Same error here. after i install pydot and graphviz, still getting the error. Any advise on how to solve this? Thanks!
@jyoz90 you need to download the binary as well, that worked for me.
apk add --update --no-cache graphviz
I confirm what @guifeliper wrote work also on MacOS: you have to install graphviz on the system (brew install graphviz
) and not with Pip.
I solved it by installing pydot and graphiz with command
sudo apt install python-pydot python-pydot-ng graphviz
ref
thanks
我通过使用命令ref安装pydot和graphiz解决了它
sudo apt install python-pydot python-pydot-ng graphviz
FileNotFoundError Traceback (most recent call last) ~/opt/anaconda3/lib/python3.7/site-packages/pydot.py in create(self, prog, format, encoding) 1914 arguments=arguments, -> 1915 working_dir=tmp_dir, 1916 )
~/opt/anaconda3/lib/python3.7/site-packages/pydot.py in call_graphviz(program, arguments, working_dir, kwargs) 135 stdout=subprocess.PIPE, --> 136 kwargs 137 )
~/opt/anaconda3/lib/python3.7/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text) 774 self._closed_child_pipe_fds = False --> 775 776 try:
~/opt/anaconda3/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session) 1521 pass -> 1522 1523 try:
FileNotFoundError: [Errno 2] No such file or directory: 'dot': 'dot'
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
While in the virtual environment, the following installation methods does not works
sudo apt install python-pydot python-pydot-ng graphviz
I solved it by installing pydot and graphiz with command
sudo apt install python-pydot python-pydot-ng graphviz
ref
ThankYou!!!!!!!!!!
What about Red Hat
system?
This worked for me in virtual machine with anaconda: sudo apt install graphviz
I confirm what @guifeliper wrote work also on MacOS: you have to install graphviz on the system (
brew install graphviz
) and not with Pip.
Any idea why this is needed?
Installing via homebrew simply installs the binary in /usr/local/Cellar as opposed to pip which installs in /usr/local/lib/python@version/site-packages.
Both are available on PATH so i struggle to see why there would be a difference, even though there definitely is..
What about
Red Hat
system?
This worked for me on Fedora 36
sudo dnf install graphviz
sudo apt install graphviz
thanks!!
The solution using "brew install graphviz" works very fine after trying to do something in Python. Thankyou @guifeliper
I confirm what @guifeliper wrote work also on MacOS: you have to install graphviz on the system (
brew install graphviz
) and not with Pip.
And the Homebrew command from @vlavorini works with Jupyter Notebook as well. Thanks!
I confirm that this works on macbook. Thank you so much
I confirm what @guifeliper wrote work also on MacOS: you have to install graphviz on the system (
brew install graphviz
) and not with Pip.
I have an error when I try to run the command
The error bellow happens even if I have the tree.dot file and installed
pip install graphviz