If you’re having issues compiling the binary extension, or on a platform where you cant, you can try using the pure python PyMySQL bindings.
Simply pip install pymysql and switch your SQLAlchemy URI to start like this:
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://.....'
There are some other drivers you could also try.
Related Posts:
- ModuleNotFoundError: No module named ‘MySQLdb’
- IndexError: tuple index out of range —– Python
- Redirecting to URL in Flask
- json.dumps vs flask.jsonify
- Internal Redirect in Flask
- Get the data received in a Flask request
- Get the data received in a Flask request
- ImportError: cannot import name
- Install mysql-python (Windows)
- Where can I find a list of the Flask SQLAlchemy Column types and options?
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- Flask Template Not found
- Return JSON response from Flask view
- Flask ImportError: No Module Named Flask
- Python: tuple indices must be integers, not str when selecting from mysql table
- Flask ImportError: No Module Named Flask
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- Setting Django up to use MySQL
- mysql_config not found when installing mysqldb python interface
- Flask ImportError: No Module Named Flask
- ImportError: No Module Named bs4 (BeautifulSoup)
- SQLAlchemy ORDER BY DESCENDING?
- How to update SQLAlchemy row entry?
- Flask raises TemplateNotFound error even though template file exists
- Flask example with POST
- Where do I get a SECRET_KEY for Flask?
- How can I get the named parameters from a URL using Flask?
- Flask Error: “Method Not Allowed The method is not allowed for the requested URL”
- In Flask, what is “request.args” and how is it used?
- In Flask, what is “request.args” and how is it used?
- How does ajax work with python?
- ImportError: No module named mysql.connector using Python2
- ImportError: No module named ‘MySQL’
- Flask-SQLalchemy update a row’s information
- Replacing Pandas or Numpy Nan with a None to use with MysqlDB
- Trying to run Flask app gives “Address already in use”
- What is the easiest way to clear a database from the CLI with manage.py in Django?
- jinja2.exceptions.TemplateNotFound error [duplicate]
- How to serve static files in Flask
- Installing MySQL-python causes command ‘clang’ failed with exit status 1 on Mac OS 10.13.15
- python flask import error
- How do I get Flask to run on port 80?
- Error loading MySQLdb module: No module named ‘MySQLdb’
- Python MySQLdb not importing
- python-How to set global variables in Flask?
- How to get POSTed JSON in Flask?
- How to create a new database using SQLAlchemy?
- Flask Value error view function did not return a response [duplicate]
- Flask-framework: MVC pattern
- Create dynamic URLs in Flask with url_for()
- File “/usr/bin/pip”, line 9, in
from pip import main ImportError: cannot import name main - SyntaxError: unexpected EOF while parsing
- How do I lowercase a string in Python?
- How do I copy a file in Python?
- How can I reverse a list in Python?
- Manually raising (throwing) an exception in Python
- How do I copy a file in Python?
- can’t multiply sequence by non-int of type ‘float’
- Difference between del, remove, and pop on lists
- How can I reverse a list in Python?
- How to use the pass statement
- How to use filter, map, and reduce in Python 3
- What does enumerate() mean?
- Searching the student-t distribution table for values using python
- How to declare an array in Python?
- Does Python have a ternary conditional operator?
- Use Gif Logo For Loading Screen In Kivy
- Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked
- Pig Latin Translator
- What is the difference between Python’s list methods append and extend?
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- TypeError: ‘int’ object is not subscriptable
- sphinx.ext.autodoc: Keeping names of constants in signature
- are there dictionaries in javascript like python?
- How do you round UP a number?
- Understanding slice notation
- Iterating over dictionaries using ‘for’ loops
- How to define a two-dimensional array?
- how to sort pandas dataframe from one column
- Why am I seeing “TypeError: string indices must be integers”?
- How do you round UP a number?
- Understanding slice notation
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How do I update\upgrade pip itself from inside my virtual environment?
- How to open a file using the open with statement
- How to emulate a do-while loop?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to comment out a block of code in Python [duplicate]
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- Using “with open() as file” method, how to write more than once? [duplicate]
- TypeError: list indices must be integers or slices, not str
- Why there is no do while loop in python
- How do I get a substring of a string in Python?
- How do I sort a dictionary by value?
- ImportError: DLL load failed: The specified module could not be found
- How do I sort a dictionary by value?
- How to prettyprint a JSON file?
- What does the “yield” keyword do?
- ImportError: DLL load failed: The specified module could not be found