pip安装错误:需要Microsoft Visual C ++ 10.0 [英] pip install error: Microsoft Visual C++ 10.0 is required

查看:111
本文介绍了pip安装错误:需要Microsoft Visual C ++ 10.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在Windows 10 x64上运行的Python 3.4,试图通过pip pip install pylint安装pylint.

I have Python 3.4, running on Windows 10 x64, trying to install pylint via pip: pip install pylint.

这样做时,出现以下错误:Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279

When doing so, I get the following error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279

但是我已经拥有:

  • Microsoft Visual C ++ 2010 x64,Microsoft Visual C ++ x86都可重新分发
  • Microsoft Visual C ++ 2013 x64,Microsoft Visual C ++ x86都可重新分发
  • Microsoft Visual C ++ 2015-2019 x64,可再发行
  • Microsoft Visual C ++ 2017 x64,Microsoft Visual C ++ 2017 x86都可重新分发

我看到了一些其他的帖子,这些帖子已经尝试过并且可能对我没有帮助-

I saw some other posts with possible solutions that I've tried and did not seem to help to me -

  • 更新setuptoolsvirtualenv

下载错误中给出的SDK

Downloading the SDK given in the error

添加VS110COMNTOOLS, VS120COMNTOOLS, VS140COMNTOOLS env变量

当然,每次尝试后,我都重新启动了PC.

Of course, after every attempt I've rebooted my PC.

我还能尝试解决什么问题?

What else could I try to fix this?

是否可以在没有pip的情况下安装pylint?

Is it possible to install pylint without pip?

推荐答案

您没有任何Visual C ++,只有可再发行组件包.它们安装用于运行用VC编写的应用程序的运行时库.但是您需要Visual C ++编译器!安装 Visual Studio 2010 Express .

You don't have any Visual C++, you only have Redistributable packages. They install run-time libraries that are used to run applications written with VC. But you need Visual C++ compiler! Install Visual Studio 2010 Express.

另请参见 https://stackoverflow.com/search?q=%5Bpip%5D+%22Microsoft+Visual+C%2B%2B+10.0+is+required%22

这篇关于pip安装错误:需要Microsoft Visual C ++ 10.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆