问答详情
源自:4-1 存储数据到MySQL

pycharm报错,提示pymysql没有这个模块

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


提问者:慕侠9546997 2018-02-22 15:40

个回答

  • meengo
    2018-02-26 09:17:21

    在终端中输入pip install pymysql可以解决问题


  • 慕婉清5269197
    2018-02-22 15:57:16

    在cmd命令行中输入pip install pymysql,如果不行换easy_install pymysql 。

    如图:

    http://img1.mukewang.com/5a8e77be0001b7b405800407.jpg