2019-01-19
阅读量:
800
Python 中 导入 BeautifulSoup报错
问:Python 中 from bs4 import BeautifulSoup时显示cannot import name _htmlparser怎么解决。
答:
可能是版本太旧的问题。更新一下python和库试试
打开CMD
pip install bs4 http://mirrors.aliyun.com/pypi/simple/
pip install Beautifulsoup4 http://mirrors.aliyun.com/pypi/simple/
如果不行就直接打开http://mirrors.aliyun.com/pypi/simple/这个网址把最新版本的库下载后,在下载文件的文件夹命令行打开用pip安装即可






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
3条评论