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

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

    I had this same problem. A solution for updating setuptools

    pip install -U setuptools
    

    or

    pip install setuptools --upgrade
    
    0 讨论(0)
  • 2020-11-21 07:54

    None of the solutions here and elsewhere worked for me. Turns out an incompatible 32bit version of mysqlclient is being installed on my 64bit Windows 10 OS because I'm using a 32bit version of Python

    I had to uninstall my current Python 3.7 32bit, and reinstalled Python 3.7 64bit and everything is working fine now

    0 讨论(0)
  • 2020-11-21 08:02

    Oops! Looks like they don't have Windows wheels on PyPI.

    In the meantime, installing from source probably works or try downloading MSVC++ 14 as suggested in the error message and by others on this page.

    Christoph's site also has unofficial Windows Binaries for Python Extension Packages (.whl files).

    Follow steps mentioned in following links to install binaries :

    1. Directly in base python
    2. In virtual environments / Pycharm

    Also check :

    Which binary to download??

    0 讨论(0)
  • 2020-11-21 08:03

    to add on top of @Sushant Chaudhary's answer

    in my case, I got another error regarding lxml as below

    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    running build_ext
    building 'lxml.etree' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
    

    I had to install lxml‑4.2.3‑cp37‑cp37m‑win_amd64.whl same way as in the answer of @Sushant Chaudhary to successfully complete installation of Scrapy.

    1. Download lxml‑4.2.3‑cp37‑cp37m‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
    2. put it in folder where python is installed
    3. install it using pip install <file-name>

    now you can run pip install scrapy

    0 讨论(0)
  • 2020-11-21 08:04

    I had the exact issue while trying to install Scrapy web scraping Python framework on my Windows 10 machine. I figured out the solution this way:

    1. Download the latest (the last one) wheel file from this link

    0 讨论(0)
  • 2020-11-21 08:04

    This work for me
    pip install --only-binary :all: mysqlclient

    0 讨论(0)
提交回复
热议问题