Search code examples
mysqlflaskvisual-c++xampp

I'm trying to connect MySQl and Flask but I keep getting an error. I'm using XAMPP for this web app


So, I'm trying to connect my sql database on xampp to my flask database.

I'm using this command:

pip3 install flask-mysqldb

but I keep getting an error and it tells me to download Microsoft Visual C++.

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

I tried it again after I downloaded the app but it's not working at all. It still shows up with the same error.


Solution

  • You go to

    https://visualstudio.microsoft.com/downloads/
    

    Where you can find at the bottom

    enter image description here

    under all downloads --> Too for visual Studio 2019 You find

    Buildtools für Visual Studio 2019
    

    After installing the installer you must choose Desktop Delevelopment with c++

    After that the message disappears