python模块安装错误"Visual c ++ 14.0&";是必须的 [英] python modules installing Error "Visual c++ 14.0" is required

查看:417
本文介绍了python模块安装错误"Visual c ++ 14.0&";是必须的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在运行Windows 8.1和Python 3.7的PC上安装Python的新模块 我找到了一个说安装Microsoft Build Tools 2015"的解决方案.我安装了此软件包,仍然遇到此错误.这是屏幕截图(Visual c ++ 14.0错误):

I am trying to install new modules of Python on my PC running Windows 8.1 and Python 3.7 I found a solution saying "Ïnstall Microsoft Build Tools 2015". I install this package and still facing this error. Here is a screenshot(Visual c++ 14.0 error):

请帮助我解决这个问题,现在引起头痛.

Please help me to sort this out, now its causing headache.

推荐答案

您必须安装Microsoft Visual Studio 15随附的C ++编译器.这是因为Python的某些基础库是用C ++编写的. Linux和Mac OS都随附有操作系统内置的C ++构建工具,而Windows没有(非常糟糕).它曾经是一套独立的构建工具,可以单独安装.不幸的是,用于Microsoft Visual C ++的独立构建工具已不复存在.相反,Microsoft希望您安装其6GB视觉工作室,许多旧链接都直接指向该工作室.我们中的许多人意识到这一要求是分散的,因此需要独立安装程序.

You have to install the C++ compiler that comes with Microsoft Visual Studio 15. This is because some of the underlying libraries of Python are written in C++. Both Linux and Mac OSs come with the C++ build tools built in with the operating system, Windows does not (sadly). It used to be a stand alone set of build tools one could install separately. Unfortunately, the stand alone build tools for Microsoft Visual C++ no longer exist. Instead Microsoft prefer you install their 6GB visual studio, which many old links direct to. Many of us realize that this requirement is despotic and want the stand alone installer back.

尽管Microsoft尽最大努力将所有超链接(在MS博客等中)重定向到新的Visual Studio安装程序,但以下位置似乎托管了VS2015的较早版本的构建工具.但是,它的大小将在3gb和6gb之间: https://visualstudio.microsoft .com/vs/older-downloads/

Despite Microsoft best efforts to redirect all hyperlinks(in MS blogs etc) to the new Visual Studio installer, the following location seems to host the older build tools for VS2015. However, it is going to be between 3gb and 6gb in size: https://visualstudio.microsoft.com/vs/older-downloads/

对于C ++生成工具,大小没有任何意义.但是,我被告知这是正确的.似乎以真正的MS方式,它带来了很多额外的负担,大多数用户/开发人员甚至都不在乎(我不想为Arm等交叉编译C ++).

The size does not make any sense for just the C++ build tools. However, I am told this is correct. It seems in true MS fashion it ships with a lot of extra baggage most of users / developers will not even care about (I don't want to cross compile C++ for Arm etc).

这篇关于python模块安装错误"Visual c ++ 14.0&";是必须的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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