简体   繁体   中英

Failed to install flask-mysqldb

I am new in python and I'm trying to install flask_mysqldb from console. After attempting to install with PIP I'm getting this error:

Command "c:\users\\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\\\AppData\\Local\\Temp\\pip-install-u_90tj5p\\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\\AppData\Local\Temp\pip-record-kdrtt5v6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\\AppData\Local\Temp\pip-install-u_90tj5p\mysqlclient\

I have followed this one [Flask-MySQLdb's documentation][1]

what is this error? and how to fix it?

following might be the reason for the failure.

1) incompatible python issue,so install python 64 bit version instead of python 32
or the other way and try to pip install again.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM