“dot.exe” not found in path. Pydot on Python (Windows 7)

前端 未结 8 1506
挽巷
挽巷 2021-01-31 10:04

I\'m having trouble running Python\'s pydot on Windows 7.

I installed pydot with: conda install -c rmg pydot=1.2.2

I have graphviz installed under

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-31 10:14

    Using django-extensions to generate the model graph for your Django application, I did this and it worked:

    pip install django-extensions
    pip install pyparsing
    pip install graphviz
    pip install pydot
    conda install graphviz
    

    Add django-extensions to you INSTALLED_APPS and then add C:\Program Files\Anaconda3\pkgs\graphviz-2.38.0-4\Library\bin\graphviz to my system path variable. Then finally and normally:

    python manage.py graph_models -a -g -o pic.png
    

提交回复
热议问题