Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 765
TuralAsgar Avatar asked Jan 31 '18 12:01

TuralAsgar


People also ask

Is Microsoft Visual C ++ free?

For commercial projects, you can use Visual C++ for free as an individual or in teams of 5 or fewer. With bigger teams you'll have to purchase a Visual Studio license for every developer working on the project.

What is Microsoft Visual C++ build tools?

The Microsoft C++ Build Tools provides MSVC toolsets via a scriptable, standalone installer without Visual Studio. Recommended if you build C++ libraries and applications targeting Windows from the command-line (e.g. as part of your continuous integration workflow).

How do I install Visual Build tools?

In a web browser window, go to https://visualstudio.microsoft.com/downloads/: 2. Scroll down and open the Tools for Visual Studio 2019 section. 3. Find Build Tools for Visual Studio 2019 and click Download.

Is Visual Studio build tools free?

If you can use the Visual Studio Community for free, you can also use the Build Tools with a valid free license. If you cannot use the Visual Studio Community, you need to use the Build Tools with a valid paid license.


2 Answers

To solve any of the following errors:

  • "Failed building wheel for misaka"
  • "Failed to build misaka"
  • "Microsoft Visual C++ 14.0 is required"
  • "Unable to find vcvarsall.bat"

The solution is:

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

  2. Select the free download under Visual Studio Community 2017

    • This will download the installer.
    • Run the installer
  3. Now the most important step is to select what you need under the workload tab:

    • Under Windows there are 3 choices. ONLY check "Desktop development with C++"
    • Under Web & Cloud there are 7 choices. ONLY check Python development (I believe this is optional but I still did it).
  4. Now go to your cmd and install the package:

    pip3 install misaka 

screenshoot of what you need to install

Note that if you already installed Visual Studio then when you run the installer, you can modify it (click the modify button under Visual Studio Community 2017) and do steps 3 and 4. enter image description here

like image 172
WISAM Avatar answered Sep 25 '22 08:09

WISAM


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

Build tools selection for spacy

like image 22
Jason246 Avatar answered Sep 24 '22 08:09

Jason246