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

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

Leave a Comment