1: Install pymysql
PyMySQL is a library used to connect to the MySQL server in the Python3.x version.
I'm using version 3.7 of Python.
(1) Find the pip.exe path.
In the Scripts directory under the Python installation directory, find the built-in pip tool.
(2) Enter the command line through cmd and drag the pip.exe file to the command line window.
(3) Enter install pymysql to successfully install pymysql. (You need to enter the previous ones together!!! I started to run pip.exe directly and then install pymysql. It showed that - 'install' is not an internal or external command, nor is it operable. program of)
(4) Start python first, and then verify whether pymysql is installed successfully by importing pymysql. If no error is reported, then pymysql is installed successfully.
2: Install pillow.
Open cmd and enter pip install pillow
. Execute the command pip show pillow to check whether the installation is successful. The successful installation is as shown below: