[Python] Use pip to install pymysql and pillow, and check whether the installation is successful

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.
Insert image description here

(2) Enter the command line through cmd and drag the pip.exe file to the command line window.
Insert image description here

(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)
Insert image description here

(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.
Insert image description here

2: Install pillow.
Open cmd and enter pip install pillow
Insert image description hereInsert image description here
. Execute the command pip show pillow to check whether the installation is successful. The successful installation is as shown below:
Insert image description here

Guess you like

Origin blog.csdn.net/anjue1997/article/details/115836312