在控制台中输入pip install pymysql即可,以下是输出:
C:\Users\horn1\Desktop\python\15>pip install pymysqlCollecting pymysql Downloading PyMySQL-0.8.0-py2.py3-none-any.whl (83kB) 100% |████████████████████████████████| 92kB 226kB/sInstalling collected packages: pymysqlSuccessfully installed pymysql-0.8.0You are using pip version 9.0.1, however version 9.0.3 is available.You should consider upgrading via the 'python -m pip install --upgrade pip' command.