简体   繁体   English

Pygraphviz 安装失败,错误代码 1083 无法打开文件 graphviz/cgraph.h:没有这样的文件或目录

[英]Pygraphviz Installation Failed with error code 1083 Cannot open file graphviz/cgraph.h: No such file or directory

While trying to install pygraphviz 1.3 with pip the below error msg is coming尝试使用 pip 安装 pygraphviz 1.3 时,出现以下错误消息

Fatal error 1083 Cannot open file graphviz/cgraph.h: No such file or directory error: command C:\\Users\\Appdata\\Local\\Programs\\Common\\Microsoft\\Visual C++ for python\\9.0\\VC\\Bin\\cl.exe failed with status 2致命错误 1083 无法打开文件 graphviz/cgraph.h:没有此类文件或目录错误:命令 C:\\Users\\Appdata\\Local\\Programs\\Common\\Microsoft\\Visual C++ for python\\9.0\\VC\\Bin\\cl.exe 失败状态 2

I already have Microsoft Visual C++.我已经有了 Microsoft Visual C++。 I am using Python27.我正在使用 Python27。 Pip is working fine and I have successfully installed graphviz-2.38. Pip 工作正常,我已经成功安装了 graphviz-2.38。 I have also tried with this command:我也试过这个命令:

pip install --install-option="--include-path=\\C:\\graphviz-2.38\\release\\include\\graphviz" --install-option="--library-path=\\C:\\graphviz-2.38\\release\\lib\\graphviz" pygraphviz pip install --install-option="--include-path=\\C:\\graphviz-2.38\\release\\include\\graphviz" --install-option="--library-path=\\C:\\graphviz-2.38\\发布\\lib\\graphviz" pygraphviz

Please let me know how to solve the problem.请让我知道如何解决问题。

Using Graphviz-2.38 default installation path, I've been able to install pygraphviz-1.3.1 using this command: 使用Graphviz-2.38默认安装路径,我已经能够使用以下命令安装pygraphviz-1.3.1:

pip install --global-option=build_ext --global-option="-IC:\\Program Files (x86)\\Graphviz2.38\\include" --global-option="-LC:\\Program Files (x86)\\Graphviz2.38\\lib\\release\\lib" pygraphviz pip install --global-option = build_ext --global-option =“ - IC:\\ Program Files(x86)\\ Graphviz2.38 \\ include”--global-option =“ - LC:\\ Program Files(x86)\\ Graphviz2 .38 \\ lib \\ release \\ lib“pygraphviz

I installed the latest graphviz using the latest win64 executable from graphviz.org我使用来自 graphviz.org 的最新 win64 可执行文件安装了最新的 graphviz

graphviz 2.49 win64 graphviz 2.49 win64

and the following command worked for me以下命令对我有用

pip install --global-option=build_ext --global-option="-IC:\Program Files\Graphviz\include" --global-option="-LC:\Program Files\Graphviz\lib" pygraphviz

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装 pygrahviz 的问题“致命错误 C1083:无法打开包含文件:‘graphviz/cgraph.h’:没有此类文件或目录” - Issues installing pygrahviz "fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory" 如何修复 PyAudio、PortAudio 的安装问题:“致命错误 C1083:无法打开包含文件:'portaudio.h':没有这样的文件或目录” - How to fix installation issues for PyAudio, PortAudio: "fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory" 致命错误 C1083:无法打开包含文件:“mecab.h”:没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'mecab.h': No such file or directory 致命错误 C1083:无法打开包含文件:'io.h':没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'io.h': No such file or directory 致命错误C1083:无法打开包含文件:'openssl / opensslv.h':没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory 致命错误 C1083:无法打开包含文件:'dlfcn.h':没有这样的文件或目录 PyLPSolve - fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory PyLPSolve 编译Cython代码产生...致命错误C1083:无法打开包含文件:'io.h' - Compiling Cython code yields… fatal error C1083: Cannot open include file: 'io.h' Could not install pycocotools in windows: fatal error C1083: Cannot open include file: 'io.h': No such file or directory 错误: - Could not install pycocotools in windows: fatal error C1083: Cannot open include file: 'io.h': No such file or directory error: MySQLdb/_mysql.c(29): 致命错误 C1083: 无法打开包含文件: 'mysql.h': 没有这样的文件或目录 - MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory 在 Windows x64 中运行 Cython - 致命错误 C1083:无法打开包含文件:'basetsd.h':没有这样的文件或目录 - Running Cython in Windows x64 - fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM