pycharm提示错误:
F:\Python3.6\venv\Scripts\python.exe F:/Python3.6/imooc/wiki2mysql.py
Traceback (most recent call last):
File "F:/Python3.6/imooc/wiki2mysql.py", line 7, in <module>
import pymysql.cursors
ModuleNotFoundError: No module named 'pymysql'
Process finished with exit code 1
在终端中输入pip install pymysql可以解决问题
在cmd命令行中输入pip install pymysql,如果不行换easy_install pymysql 。
如图: