Как установить graphviz-2.38 на windows 10
Я знаю, что это элементарно, но я довольно застрял. Я никогда раньше не устанавливал python пакетов на Windows OS. только Linux.
Я скачал graphviz-2.38 zip и переместил его в каталог пакетов Anaconda. Я распаковал его, а затем в командной строке попробовал:
Это ошибка, которую я получил:
Я вообще не вижу никакого установочного файла в graphviz, так что я немного заблудился.
6 ответов
Недавно я перешел с Doxygen 1.8.4 и GraphViz 2.36, где у меня не было проблем с генерацией графиков, на Doxygen 1.8.7 и GraphViz 2.38 и теперь не могу получить графики. Во время сборки я получаю большое количество ошибок вида ошибка: запуск проблемы точка: код завершения=-1, команда=’dot’ заданы.
Как проверить версию и путь GraphViz, установленного на Windows? Какая команда в командной строке используется или расположение реестра для их поиска?
Я столкнулся с той же проблемой, и просто pip install graphviz не сработало для меня. Кроме того, я установил двоичные файлы и установил папку bin в переменную Windows environment PATH , и тогда это сработало.
P.S. это решение устанавливает версию 0.8.2, но работает для keras.utils.vis_utils.plot_model , что было проблемой для меня
Если вы используете Conda, то выполните следующие действия: стадион conda установить -c anaconda программ
Однако обязательно запустите conda cmd от имени администратора, чтобы избежать ошибок разрешения привилегий. Приведенная выше команда обновит / установит все требования, и graphviz будет доступен в среде по умолчанию по адресу C:\ProgramData\Anaconda3 (для windows. Not обязательно для MAC).
Для меня просто установка библиотеки graphviz не работает. Он не смог открыть файлы dot . Поэтому мне пришлось сделать следующее:
- Загрузите стабильную версию Graphviz , нажав кнопку Stable 2.38 Windows install packages здесь
- Установите библиотеку Graphviz с помощью pip install graphviz
- Поскольку вы используете windows, проверьте установленный инструмент под названием GVEdit (просто найдите его в меню «Пуск»), это немного упрощает весь процесс.
- Файлы dot можно открыть, выбрав File —> Open
Я скачал версию Graphviz 2.38 MSI и установил под папкой C:\Python34 , затем запустил pip install Graphviz , все прошло хорошо. В пути системы я добавил C:\Python34\bin . Когда я попытался запустить тестовый скрипт в строке filename=dot.render(filename=’test’) , я получил сообщение RuntimeError.
Я пытаюсь запустить graphviz как библиотеку из CLion в Windows. Мне потребовалось довольно много времени, чтобы забраться так далеко, и я надеюсь, что это последнее препятствие. Когда я запускаю программу я вижу следующее предупреждение и никакого графика Warning: Could not load C:\Program Files.
Я пытался 1. «pip install graphviz» или 2. «conda install graphviz». Оба они не работают на меня.
Я решаю задачу для WIndows-10 следующим образом:
- Перейдите на веб-сайт gephiviz: http:/ / wingraphviz.sourceforge.net / wingraphviz/
- Setup environment variables, path=». ;c:\Program Files (x86)\Graphviz2.38\bin;»
- Сохраните путь
- Откройте приглашение и проверьте путь «Graphviz».
- Повторите выполнение программы, теперь дерево визуализировано.
Для пользователей Conda:
1. conda install graphviz
2. conda install python-graphviz
Похожие вопросы:
Я хотел бы использовать GraphViz для создания графических изображений и просмотра их в интернете. GraphViz отлично работает на моем компьютере, но как я могу использовать его на сервере linux? На.
Я только что заметил, что NetBeans 10 был выпущен в декабре 2018 года. Однако я не могу понять, как установить его на windows. Он вообще совместим с windows 10?
При попытке установить pygraphviz 1.3 с pip появляется следующая ошибка msg Фатальная ошибка 1083 не удается открыть файл graphviz/cgraph.h: нет такого файла или каталога ошибка: команда.
Недавно я перешел с Doxygen 1.8.4 и GraphViz 2.36, где у меня не было проблем с генерацией графиков, на Doxygen 1.8.7 и GraphViz 2.38 и теперь не могу получить графики. Во время сборки я получаю.
Как проверить версию и путь GraphViz, установленного на Windows? Какая команда в командной строке используется или расположение реестра для их поиска?
Я скачал версию Graphviz 2.38 MSI и установил под папкой C:\Python34 , затем запустил pip install Graphviz , все прошло хорошо. В пути системы я добавил C:\Python34\bin . Когда я попытался запустить.
Я пытаюсь запустить graphviz как библиотеку из CLion в Windows. Мне потребовалось довольно много времени, чтобы забраться так далеко, и я надеюсь, что это последнее препятствие. Когда я запускаю.
Итак, у меня уже некоторое время есть Python 3.6 на моем компьютере Windows 10, и сегодня я просто скачал и установил пакет graphviz 0.8.2 ( https://pypi.python.org/pypi/graphviz ) через командную.
Страница загрузки программ и в одной, одна на файл .msi, а другой для .zip при запуске .msi это выглядит так, что он предназначен для 32 бит, так как установка каталога по умолчанию-Program Files.
Graphviz — Graph Visualization Software
For building on Windows:
(Graphviz versions ≥ 2.41)
First, in the root of the repository, perform git submodule update —init . This will download all submodules, which are mostly the dependencies for the Windows build. Next, add the windows\dependencies\graphviz-build-utilities directory to your PATH (and restart Visual Studio or the prompt with which you execute msbuild after that). This folder contains the tools Bison, Flex and SED (and future additions) with versions that are tested. If all went right, the dependencies are now set up and you can build Graphviz.
(Graphviz versions ≥ 2.30)
The current build process for Windows using Visual Studio is fairly simple assuming all of the necessary files are available and have been put in the correct place. The build assumes you have installed binary versions of GTK 2.0 or later, Qt, and ltdl, and source versions of GTS and ann. Further instructions can be found in the Graphviz gitlab repository.
This whole process could and should be simplified. In particular, the 3rd-party software should not be stored in two places, and the Graphviz files that are made part of the release should come from the source package, and not be stored separately. In addition, the GTS and ANN build should be separate from the Graphviz build. As 3rd-party libraries, these should only be built when the source is updated.
(Graphviz versions ≥ 2.22)
We now build both Visual Studio and MinGW versions of Graphviz. In addition, the source package comes with project files for Visual Studio, so building from source should be fairly simple in either case.
- The first step is to add the third-party libraries. These are listed here. This is most easily done by installing a Windows binary version of GTK 2.0 or later.
- Next, download and unwrap the Graphviz source package, and copy over either the stable release or the development source package.
Let $ROOT be the root directory (folder) in which you stored the Graphviz source.
Building with Visual Studio
- Copy the file $ROOT/windows/config.h into $ROOT.
- Copy the folder $ROOT/windows/FEATURE into $ROOT.
- Start Visual Studio and read in $ROOT/graphviz.sln. There are project files for all of the parts of Graphviz.
- Modify the various settings for include file and library directories to find the third-party software.
- Modify the settings as to where you want the software installed.
- Build Graphviz.
Building with MinGW
- Install MinGW and Msys. This gives a mini GNU-like compile environment
Set environment variables based on your machine, giving values to the first six below:
Change directory to $ROOT and run configure:
When configure finishes, it lists all of the Graphviz features that have been enabled. If there are problems, you can check for errors in config.log . You may have to add or modify other flags and environment variables for configure to give you the settings you want. Run configure —help to see the allowed options and environment variables.
These builds create a feature-full version of Graphviz. You can tailor them to your wants. This is fairly simple for MinGW: just remove or reset the flag of the option you don’t want. For Visual Studio, you will probably need to reset some of the values in config.h and some of the compile-time options.
(2.21 >= Graphviz versions > 2.14)
To simplify our build process, especially as most Windows users only want a binary version of the software, the Graphviz build for Windows now uses uwin, an open-source Unix layer on top of Windows. In this environment, we can use essentially the same tools and process used on Unix. In particular, we do not have to maintain multiple build files.
To build Graphviz:
- Install the third-party libraries. This is most easily done by installing a Windows binary verion of GTK 2.0 or later.
- Download the Graphviz source package, and copy over either the stable release graphviz- VERSION .tar.gz or the development source package graphviz-working.tar.gz .
Unwrap the package:
You can use, for example,
Let $ROOT be the directory in which you stored the Graphviz source.
Configure the package for your system:
You will probably want to provide additional arguments to configure to indicate where you have installed GTK, where you want the results installed ( —prefix ) and which additional optional packages you want built. Run configure —help to see the available set of arguments.
Presumably, a similar approach would work with Cygwin or MinGW. The following are some notes by Steve Roush describing how he made a static build of the libraries on MinGW.
- Install MinGW and Msys. This gives a mini GNU-like compile environment that produces Windows-compatible results.
- You may need to configure and build in Windows “Safe mode”. Try ./configure in normal mode; if it dies with “fork” problems, use Safe mode.
Edit the “configure” file. after this line:
Graphviz — Graph Visualization Software
Source Code
Source code packages for the latest stable and development versions of Graphviz are available, along with instructions for anonymous access to the sources using Git.
Executable Packages
Packages marked with an asterisk(*) are provided by outside parties. We list them for convenience, but disclaim responsibility for the contents of these packages.
Linux
We do not provide precompiled packages any more. You may find it useful to try one of the following third-party sites.
Windows
- Stable Windows install packages:
- 2.47.1 EXE installer for Windows 10 (64-bit): stable_windows_10_cmake_Release_x64_graphviz-install-2.47.1-win64.exe (not all tools and libraries are included)
- 2.47.1 EXE installer for Windows 10 (32-bit): stable_windows_10_cmake_Release_Win32_graphviz-install-2.47.1-win32.exe (not all tools and libraries are included)
- 2.47.1 ZIP archive for Windows 10 (32-bit): stable_windows_10_msbuild_Release_Win32_graphviz-2.47.1-win32.zip
- checksums: stable_windows_10_cmake_Release_x64_graphviz-install-2.47.1-win64.exe.sha256 | stable_windows_10_cmake_Release_Win32_graphviz-install-2.47.1-win32.exe.sha256 | stable_windows_10_msbuild_Release_Win32_graphviz-2.47.1-win32.zip.sha256
- Further 2.47.1 variants available on Gitlab
- Prior to 2.46 series
- Development Windows install packages
- 2.46.0 as newer
- Prior to 2.46.0
- Cygwin Ports* provides a port of Graphviz to Cygwin.
- WinGraphviz* Win32/COM object (dot/neato library for Visual Basic and ASP).
-
Mostly correct notes for building Graphviz on Windows can be found here.
MacPorts* provides both stable and development versions of Graphviz and the Mac GUI Graphviz.app. These can be obtained via the ports graphviz, graphviz-devel, graphviz-gui and graphviz-gui-devel.
We need help with OSX, if you would like to volunteer.
We would appreciate if someone donates a script to run pkgbuild or productbuild to automatically generate OSX installers. Packaging for Apple Administrators could be a good reference. Note graphviz needs postinstall actions, at least dot -c ; also fc-cache if Graphviz has freetype/cairopango drivers.
Solaris
For Solaris, please use the graphviz stable releases here. These are maintained by Laurent Blume / John Ellson. Currently available packages are:
graphviz Graph Visualization Tools graphviz_dev Graphviz headers etc. for development graphvizdoc Graphviz documentation graphvizgd Graphviz renderers using gd graphvizgraphs Graphviz example graphs graphvizguile Graphviz language binding for guile graphvizperl Graphviz language binding for perl graphvizpython Graphviz language binding for python graphvizruby Graphviz language binding for ruby graphvizsharp Graphviz language binding for C# graphviztcl Graphviz language binding for tcl Minimally, graphviz and graphvizgd should be installed.
Как установить graphviz-2.38 на Windows 10
Я знаю, что это просто, но я застрял. Я никогда не устанавливал пакеты Python в ОС Windows раньше. только в Linux.
Я загрузил zip-файл graphviz-2.38 и переместил его в каталог пакетов Anaconda. Я распаковал его, а затем в командной строке попытался:
Это ошибка, которую я получил:
Я не вижу никакого файла установки в Graphviz вообще, поэтому я немного растерялся.
3 ответа
Я столкнулся с той же проблемой и просто pip install graphviz не работал для меня Кроме того, я установил двоичные файлы и установил папку bin в среде Windows PATH переменная, а потом все заработало.
PS это решение устанавливает версию 0.8.2, но работает для keras.utils.vis_utils.plot_model что было проблемой для меня
Если вы используете Conda, запустите следующее: conda install -c anaconda graphviz
Обязательно запустите conda cmd от имени администратора, чтобы избежать ошибок разрешений привилегий. Приведенная выше команда обновит / установит все требования, и graphviz будет доступен в среде по умолчанию в C:\ProgramData\Anaconda3 (для Windows. Не уверен для MAC).
Для меня просто установка graphviz библиотека dint работа. Не смог открыть dot файлы. Поэтому мне пришлось сделать следующее:
- Скачать конюшню Graphviz версия, нажав Stable 2.38 Windows install packages отсюда
- устанавливать Graphviz использование библиотеки pip install graphviz
- Поскольку вы используете Windows, проверьте установленный инструмент под названием GVEdit (просто поиск в меню «Пуск»), он немного облегчает весь процесс.
- dot файлы можно открыть, выбрав File —> Open