File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
Original file line number Diff line number Diff line change 1
- mysqlclient
2
- ===========
1
+ # mysqlclient
3
2
4
3
[ ![ Build Status] ( https://secure.travis-ci.org/PyMySQL/mysqlclient-python.png )] ( http://travis-ci.org/PyMySQL/mysqlclient-python )
5
4
@@ -8,11 +7,29 @@ This is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1).
8
7
This project adds Python 3 support and bug fixes.
9
8
I hope this fork is merged back to MySQLdb1 like distribute was merged back to setuptools.
10
9
11
- Prerequisites for Installing
12
- ----------------------------
10
+ ## Install
11
+
12
+ ### Prerequisites
13
13
14
14
You may need to install the Python and MySQL development headers and libraries like so:
15
15
16
16
` sudo apt-get install python-dev libmysqlclient-dev ` # Debian / Ubuntu
17
17
18
18
` sudo yum install python-devel mysql-devel ` # Red Hat / CentOS
19
+
20
+ On Windows, there are binary wheel you can install without MySQLConnector/C or MSVC.
21
+
22
+
23
+ ### Install from PyPI
24
+
25
+ ` pip install mysqlclient `
26
+
27
+ NOTE: Wheels for Windows may be not released with source package. You should pin version
28
+ in your ` requirements.txt ` to avoid trying install source newest pacakge.
29
+
30
+
31
+ ### Install from source
32
+
33
+ 1 . Download source by ` git clone ` or [ zipfile] ( https://github.com/PyMySQL/mysqlclient-python/archive/master.zip ) .
34
+ 2 . Customize ` site.cfg `
35
+ 3 . ` python setup.py install `
You can’t perform that action at this time.
0 commit comments