Python 需要 Microsoft Visual C++ 14.0。使用“Microsoft Visual C++ 构建工具”获取它:http://landinghub.visualst udio.com/visual-cpp-build-tools

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48541801/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 18:44:41  来源:igfitidea点击:

Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualst udio.com/visual-cpp-build-tools

pythondjangopython-3.xmsbuildmisaka

提问by Tural Asgar

I have tried all methods mentioned on the internet but there is no use. I am trying to install misaka by writing pip install misakait keeps complaining by showing the same message. I have downloaded and installed MS build tool 2015 and 2017, Restarted my laptop. Whatever I did, couldn't figure out why it complains. Python version 3.6.4 Windows 10

我已经尝试了互联网上提到的所有方法,但没有用。我试图通过编写pip install misaka它来安装misaka,它通过显示相同的消息不断抱怨。我已经下载并安装了 MS 构建工具 2015 和 2017,重新启动了我的笔记本电脑。无论我做了什么,都无法弄清楚为什么它会抱怨。Python 版本 3.6.4 Windows 10

回答by WISAM

to solve any of the following error Failed building wheel for misakaor Failed to build misakaor Microsoft Visual C++ 14.0 is requiredor Unable to find vcvarsall.bat

解决以下任何错误Failed building wheel for misakaFailed to build misakaMicrosoft Visual C++ 14.0 is requiredUnable to find vcvarsall.bat

Solution is:

解决办法是:

1- go to: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017

1- 转到:https: //www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017

2- select free download under Visual Studio Community 2017

2-在Visual Studio Community 2017下选择免费下载

(this will download the installer.) run the installer

(这将下载安装程序。)运行安装程序

3- Now Most important step is to select what you need: under workload tab:

3- 现在最重要的步骤是选择您需要的:在工作负载选项卡下:

a) under Windows there are 3 choices only CHECK Desktop development with C++

a) 在 Windows 下只有 3 个选择 CHECK Desktop development with C++

b)under Web & Cloud there are 7 choices only CHECK Python development (I believe this is optional But I have done it).

b) 在 Web & Cloud 下只有 7 个选择 CHECK Python development(我相信这是可选的,但我已经做到了)。

4- now go to your cmd and type: pip3 install misaka

4-现在去你的cmd并输入:pip3 install misaka

Good Luck screenshoot of what you need to install

祝你好运 您需要安装的屏幕截图

Note if you already installed visual studio then when you run the installer ;you can modify yours (click modify button under Visual Studio Community 2017) and do steps 3 and 4 enter image description here

请注意,如果您已经安装了 Visual Studio,那么当您运行安装程序时,您可以修改您的(单击 Visual Studio Community 2017 下的修改按钮)并执行步骤 3 和 4 在此处输入图片说明

回答by Jason246

Using the https://visualstudio.microsoft.com/visual-cpp-build-tools/installer only and selecting only four specific components helped solve the error.

仅使用https://visualstudio.microsoft.com/visual-cpp-build-tools/安装程序并仅选择四个特定组件有助于解决错误。

Build tools selection for spacy

spacy 的构建工具选择

回答by Tony

I was getting the same error when trying to install biopython with Python 3.7 on Windows 10.

尝试在 Windows 10 上使用 Python 3.7 安装 biopython 时遇到了同样的错误。

Installing just the Build Tools (instead of the full Community Edition as suggested in the other answer), with the options "C++/CLI support" and "VC++ 2015.3 v14.00 (v140) toolset for desktop" checked in addition to the defaults, solved the problem.

仅安装构建工具(而不是另一个答案中建议的完整社区版),除了默认值外,还选中了“C++/CLI 支持”和“VC++ 2015.3 v14.00 (v140) 桌面工具集”选项,解决了这个问题。

回答by rajah9

I did a variation of @Jason246 answer, to keep up with changes to the website.

我做了@Jason246 答案的变体,以跟上网站的变化。

I was having a problem with a pip install spacythat gave the same problem in the title.

pip install spacy在标题中遇到了同样的问题。

This is running on a Windows 10 machine.

这是在 Windows 10 机器上运行的。

First, I went directly to https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017.

首先,我直接去了https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017

Then I clicked the Download button. The download was 71 Mb at the time. Then pressed the install button when the download ran. The install took a long time as it had to create a Windows restore point.

然后我点击了下载按钮。当时的下载量为 71 Mb。然后在下载运行时按下安装按钮。安装需要很长时间,因为它必须创建 Windows 还原点。

Then I started the installer and checked the following:

然后我启动了安装程序并检查了以下内容:

Visual Studio components

Visual Studio 组件

I selected

我选择了

  • Windows 10 SDK
  • C++ CMake tools for Windows
  • 视窗 10 SDK
  • 适用于 Windows 的 C++ CMake 工具

(and the VS 2019 C++ came along for the ride).

(VS 2019 C++ 也随之而来)。

I ran

我跑了

pip install spacy

pip install spacy

and am no longer getting the error for C++ 14.0.

并且不再收到 C++ 14.0 的错误。