使用PyCharm编译python常见错误

1】bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: html_parser. Do you need to install a parser library?处理

1:修改bs4的版本

2:修改语法   

html = BeautifulSoup(res, 'lxml')   修改为  html = BeautifulSoup(res, 'html.parser')

 

2】ModuleNotFoundError: No module named 'openpyxl'

打开file=》Settings=》Project:tsc=》Project Interperter   鼠标双击pip的哪一行 在弹出框的最上方填入 openpyxl   【 No module named '缺少的配件'   收搜这个 named后面''中的名字 】   然后 安装

你可能感兴趣的:(python)