Python installation process of recording pyMySQL

Before using PyMySQL, we need to ensure PyMySQL installed.

PyMySQL Download: https: //github.com/PyMySQL/PyMySQL.

If not already installed, we can use the following command to install the latest version of PyMySQL:

$ pip3 install PyMySQL

If your system does not support pip command, you can install the following ways:

1, using the git command to download the installation package installation (you can also manually download):

$ git clone https://github.com/PyMySQL/PyMySQL
$ cd PyMySQL/ $ python3 setup.py install

2, if the need to develop a version number, you can use the curl command to install:

$ # XX is the version number PyMySQL 
$ curl - L HTTPS : //github.com/PyMySQL/PyMySQL/tarball/pymysql-XX | tar the xz $ cd PyMySQL * $ python3 Setup . Py install $ # You can now delete PyMySQL * table of Contents

May occur during installation "ImportError: No module named setuptools" of error, which means you do not have to install setuptools, you can access https://pypi.python.org/pypi/setuptools  find the installation method of each system.

https://pypi.org/project/setuptools/#files

https://files.pythonhosted.org/packages/f7/b6/5b98441b6749ea1db1e41e5e6e7a93cbdd7ffd45e11fe1b22d45884bc777/setuptools-42.0.2.zip

Download Source

unzip setuptools-42.0.2.zip

cd setuptools-42.0.2.zip

python3 setup.py install

Guess you like

Origin www.cnblogs.com/sun5/p/12040448.html