今天用python的时候,运行代码出现这种错误:
python
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\0.0 - 副本.py", line 2, in
from lxml import html
ModuleNotFoundError: No module named 'lxml
今天用python的时候,运行代码出现这种错误:
python
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\0.0 - 副本.py", line 2, in
from requests import html
ModuleNotFoundError: No module named '
百度教程说安装
pip install mysqldb
这在我的电脑上安装失败:
Could not find a version that satisfies the requirement mysqldb (from versions
: )
No matching distribution found for mysqldb
所以应该:
pip install MySQL-py