I\'ve installed Python 3.5 and while running
pip install mysql-python
it gives me the following error
error: Microsoft Vi
I had this same problem. A solution for updating setuptools
pip install -U setuptools
or
pip install setuptools --upgrade
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
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 :
Also check :
Which binary to download??
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.
pip install <file-name>
now you can run pip install scrapy
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:
Download the latest (the last one) wheel file from this link
This work for me
pip install --only-binary :all: mysqlclient