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

后端 未结 30 2204
谎友^
谎友^ 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:53

    I had the same exact issue on my windows 10 python version 3.8. In my case, I needed to install mysqlclient were the error occurred Microsoft Visual C++ 14.0 is required. Because installing visual studio and it's packages could be a tedious process, Here's what I did:

    step 1 - Go to unofficial python binaries from any browser and open its website.

    step 2 - press ctrl+F and type whatever you want. In my case it was mysqlclient.

    step 3 - Go into it and choose according to your python version and windows system. In my case it was mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl and download it.

    step 4 - open command prompt and specify the path where you downloaded your file. In my case it was C:\Users\user\Downloads

    step 5 - type pip install .\mysqlclient‑1.4.6‑cp38‑cp38‑win32.whl and press enter.

    Thus it was installed successfully, after which I went my project terminal re-entered the required command. This solved my problem

    Note that, while working on the project in pycharm, I also tried installing mysql-client from the project interpreter. But mysql-client and mysqlclient are different things. I have no idea why and it did not work.

提交回复
热议问题