I have tried all methods mentioned on the internet but there is no use.
I am trying to install misaka by writing pip install misaka
it 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
-
1Not sure if MS build tool installs the VC redist runtime. VC 2017 is 14.0. Try getting the redist files from Microsoft and install them. Files are vc_redist.x86.exe and vc_redist.x64.exe. – michael_heath Jan 31 '18 at 13:24
-
@michael_heath I have installed even visual studio, but it doesn't work. – Tural Asgar Jan 31 '18 at 21:26
-
I finally got to solve this issue as described here: stackoverflow.com/a/55575792/1612432 – ElBaulP Apr 8 '19 at 14:34
to solve any of the following error Failed building wheel for misaka
or Failed to build misaka
or Microsoft Visual C++ 14.0 is required
or Unable to find vcvarsall.bat
Solution is:
1- go to: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017
2- select free download under 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:
a) under Windows there are 3 choices only 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).
4- now go to your cmd and type: pip3 install misaka
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
-
I needed more. I run Visual Studio Installer -> Visual Studio Build Tools 2019. It preselected: C++ BUILD TOOLS C++ Build Tools core features C++ 2019 Redistributable Update C++ core desktop features OPTIONAL MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.28) Windows 10 SDK (10.0.18362.0) C++ CMake tools for Windows Testing tools core features - Build Tools C++ AddressSanitizer (Experimental) MSVC v140 - VS 2015 C++ build tools (v14.00) INDIVIDUAL COMPONENTS Windows Universal CRT SDK MSVC v140 - VS 2015 C++ build tools (v14.00) – Stefan Dec 23 '20 at 19:51
-
Using the https://visualstudio.microsoft.com/visual-cpp-build-tools/ installer only and selecting only four specific components helped solve the error.
I was getting the same error when trying to install biopython with Python 3.7 on Windows 10.
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.
I did a variation of @Jason246 answer, to keep up with changes to the website.
I was having a problem with a pip install spacy
that gave the same problem in the title.
This is running on a Windows 10 machine.
First, I went directly to 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.
Then I started the installer and checked the following:
I selected
- Windows 10 SDK
- C++ CMake tools for Windows
(and the VS 2019 C++ came along for the ride).
I ran
pip install spacy
and am no longer getting the error for C++ 14.0.