1、查看python安装位置,where python
2、查看已经安装的模块(包),pip list
3、安装需要的模块, pip install + 模块名,自动安装
4.如果出现下面的信息:
Installing collected packages: pip
Successfully installed pip-19.0.3
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
解决办法:python -m pip install -U pip
5.pip install pymysql
6.pip list