from lxml import html ModuleNotFoundError: No module named 'lxml'
今天用python的时候,运行代码出现这种错误:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\0.0 - 副本.py", line 2, in <module>
from lxml import html
ModuleNotFoundError: No module named 'lxml'
应该是没有安装lxml。解决方法:
pip install lxml
等待安装完毕后,再执行 安装 tushare
pip install tushare