1

Currently i'm using python 3.74. I want to insert data in to MYSQL using FLASK python, but whenever i try to adding this line then error will show. Import code is here:

from flask_mysqldb import MySQL

I'm using windows 10 but cannot install flask_mysqldb. Please help me to fix this issue.

Tiago B
  • 1,937
  • 14
  • 34
offline
  • 69
  • 1
  • 11
  • If you have pip (which you should), `pip3 install Flask-MySQLdb`. – Benjamin Ju Aug 29 '19 at 18:13
  • Whenever i try to install by using pip3 then e error will show like: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": – offline Aug 29 '19 at 18:20
  • 1
    https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat. This might be what you're looking for. – Benjamin Ju Aug 29 '19 at 18:25
  • You need to understand that most of SQL library must be compiled to work. If you don't have the compiler, it won't work. The above a comment should help you to solve your problem. – Victor Aug 30 '19 at 07:38

0 Answers0