pygraphviz的Python 3 pip安装失败,``需要Microsoft Visual C ++'',已安装Visual Studio 2017 [英] Python 3 pip installation of pygraphviz fails, "Microsoft Visual C++ is required", Visual Studio 2017 is installed
问题描述
我尝试执行pip install pygraphviz
,失败并显示以下错误:
I tried to pip install pygraphviz
, which failed with the error:
"Microsoft Visual C++ 14.0 is required. ..."
我已安装Visual Studio 2017.那不是应该做的工作吗?我想我选中了与C相关的每个框.
I have Visual Studio 2017 installed. Shouldn't that do the job? I think I checked every box related to C.
如果我尝试安装vc_redist.x64.exe,它会告诉我已经安装了另一个版本.
If I try to install vc_redist.x64.exe, it tells me another version is already installed.
(我想我在SciKit-learn和Scipy中有一个类似/相关的问题.)
(I think I have a similar/related problem with SciKit-learn and Scipy.)
推荐答案
来自PyGraphviz文档-
From PyGraphviz documentation -
要使用PyGraphviz,您需要Python版本2.6.x或2.7.x. PyGraphviz 不适用于Python 3.
To use PyGraphviz you need Python version 2.6.x or 2.7.x. PyGraphviz does not work with Python 3.
链接以获得更多信息.
这篇关于pygraphviz的Python 3 pip安装失败,``需要Microsoft Visual C ++'',已安装Visual Studio 2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!