mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
009f1579c5fc708ee237f71900a0129fd2412441
mysqlclient
This is a fork of MySQLdb1.
This project adds Python 3 support and bug fixes. I hope this fork is merged back to MySQLdb1 like distribute was merged back to setuptools.
Install
Prerequisites
You may need to install the Python and MySQL development headers and libraries like so:
sudo apt-get install python-dev libmysqlclient-dev # Debian / Ubuntu
sudo yum install python-devel mysql-devel # Red Hat / CentOS
On Windows, there are binary wheel you can install without MySQLConnector/C or MSVC.
Install from PyPI
pip install mysqlclient
NOTE: Wheels for Windows may be not released with source package. You should pin version
in your requirements.txt to avoid trying install source newest pacakge.
Install from source
- Download source by
git cloneor zipfile. - Customize
site.cfg python setup.py install
Languages
Python
64%
C
35.9%
Makefile
0.1%
