Graphviz library to be installed

how can I install graphviz on jupiter note on local? I already tried the following codes:
import sys
!{sys.executable} -m pip install graphviz

conda install py-graphviz

import sys
!conda install --yes --prefix {sys.prefix} graphviz

conda remove graphviz
conda install python-graphviz

conda install -c conda-forge graphviz

just try !pip install graphviz

thanks, that did not work, probably since I am using mac but I found the solution: Install Graphviz on Mac OSX

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2> /dev/null
    and press enter/return key. If you are prompted to enter your Mac’s user password, enter it (when you type it, you wont see it on your screen/terminal.app but it would accept the input; this is to ensure no one can see your password on your screen while you type it. So just type password and press enter, even if you dont see it on your screen). Then wait for the command to finish.
  3. Run:
    brew install graphviz

Done! You can now use Graphviz.