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

后端 未结 30 2880
谎友^
谎友^ 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 08:09

    I had the same issue while installing mysqlclient for the Django project.

    In my case, it's the system architecture mismatch causing the issue. I have Windows 7 64bit version on my system. But, I had installed Python 3.7.2 32 bit version by mistake.

    So, I re-installed Python interpreter (64bit) and ran the command

    pip install mysqlclient
    

    I hope this would work with other Python packages as well.

提交回复
热议问题