Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)

后端 未结 30 2278
谎友^
谎友^ 2020-11-21 07:34

I\'ve installed Python 3.5 and while running

pip install mysql-python

it gives me the following error

error: Microsoft Vi         


        
30条回答
  •  面向向阳花
    2020-11-21 07:49

    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 Build Tools for Visual Studio 2017

    2. Select free download under Visual Studio Community 2017. This will download the installer. Run the installer.

    3. 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. In cmd, 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

    Final Note : If you don't want to install all modules, having the 3 ones below (or a newer version of the VC++ 2017) would be sufficient. (you can also install the Visual Studio Build Tools with only these options so you dont need to install Visual Studio Community Edition itself) => This minimal install is already a 4.5GB, so saving off anything is helpful

提交回复
热议问题