我的情况如下:
我在pip install lxml的时候,系统告诉我已经装好了,但是在.py文件调试跟cmd 的python调试的时候,lxml又不能使用,
会报错bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?
所以我卸载了lxml,然后再装上
即
pip uninstall lxml
后再
pip install lxml
之后就好了,可以运行了
运行的时候import lxml是否存在无所谓,都能运行。