README.md | README.md | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
`sudo yum install python-devel mysql-devel` # Red Hat / CentOS | `sudo yum install python-devel mysql-devel` # Red Hat / CentOS | |||
On Windows, there are binary wheel you can install without MySQLConnector/C or MSVC. | On Windows, there are binary wheel you can install without MySQLConnector/C or MSVC. | |||
#### Note on Python 3 : if you are using python3 then you need to install p ython3-dev using the following command : | #### Note on Python 3 : if you are using python3 then you need to install p ython3-dev using the following command : | |||
`sudo apt-get install python3-dev` # debian / Ubuntu | `sudo apt-get install python3-dev` # debian / Ubuntu | |||
`sudo yum install python3-devel ` # Red Hat / CentOS | `sudo yum install python3-devel ` # Red Hat / CentOS | |||
`brew install mysql-connector-c` # macOS (Homebrew) | ||||
### Install from PyPI | ### Install from PyPI | |||
`pip install mysqlclient` | `pip install mysqlclient` | |||
NOTE: Wheels for Windows may be not released with source package. You shoul d pin version | NOTE: Wheels for Windows may be not released with source package. You shoul d pin version | |||
in your `requirements.txt` to avoid trying install source newest pacakge. | in your `requirements.txt` to avoid trying to install newest source package . | |||
### Install from source | ### Install from source | |||
1. Download source by `git clone` or [zipfile](https://github.com/PyMySQL/m ysqlclient-python/archive/master.zip). | 1. Download source by `git clone` or [zipfile](https://github.com/PyMySQL/m ysqlclient-python/archive/master.zip). | |||
2. Customize `site.cfg` | 2. Customize `site.cfg` | |||
3. `python setup.py install` | 3. `python setup.py install` | |||
### Documentation | ||||
Documentation is hosted on [Read The Docs](https://mysqlclient.readthedocs. | ||||
io/) | ||||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |