我已经安装好了mysqlclient,为什么不能导入呢?

来源:2-15 python第三方模块(学会第三方安装方法)

WU_JIE

2019-12-19 12:36:30

C:\Users\wujie>pip install mysqlclient
Requirement already satisfied: mysqlclient in c:\python38\lib\site-packages (1.4.6)
WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\wujie>python
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mysqlclient
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'mysqlclient'
>>>


写回答

1回答

时间,

2019-12-19

同学,你好。 mysqlclient安装成功后,同学使用import  MySQLdb来测试是否导入成功。能导入即表示mysqlclient安装成功

http://img.mukewang.com/climg/5dfb127509abd34007490155.jpg

如果我的回答解决了您的疑惑,请采纳!祝学习愉快~~~~

0

0 学习 · 8160 问题

查看课程