I am running Windows 10 and Python 3.6.3 . I am trying to install flask-mysqldb using
pip install flask-mysqldb.
It fails with the following:
Command "c:\\users...\\appdata\\local\\programs\\python\\python36-32\\python.exe -u -c "import setuptools, tokenize; file ='C:\\Users\\..~1\\AppData\\Local\\Temp\\pip-install-5lp__7r6\\mysqlclient\\setup.py';f=getattr(tokenize, 'open', open)( file );code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, file , 'exec'))" install --record C:\\Users...~1\\AppData\\Local\\Temp\\pip-record-zvpyshav\\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\\Users...~1\\AppData\\Local\\Temp\\pip-install-5lp__7r6\\mysqlclient\\
I have tried to install the build tools for Visual Studio, but this doesn't seem to help.
Any help or direction would be appreciated.
Thank you.
On windows computers, mysql connector is a better alternative.
Install it using:
pip install mysql-connector
I hope that solves your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.