python/ mysql/ flask

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.

Related Question Error installing mysqldb: Could not find a version that satisfies the requirement flask-mysqldb Python Pip install error with: flask-mysqldb Flask-MySQLdb autocommit? Installing flask-mysqldb gives “mysql_config not found” unable to install flask-mysqldb Flask-mysqldb database cursor Error “-fabi-version=2” when installing Msyqldb or Flask-mysqldb (or any mysql client) in PyCharm on Mac OS using AMPPS connect python to flask-mysqldb Cannot install flask-mysqldb Failed to install flask-mysqldb
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM