在python3.6中安装BeautifulSoup4-4.1.0后提示这样的错误 (小白求解)

from bs4 import BeautifulSoup
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from bs4 import BeautifulSoup
  File "D:\Python\lib\site-packages\bs4\__init__.py", line 29, in <module>
    from .builder import builder_registry
  File "D:\Python\lib\site-packages\bs4\builder\__init__.py", line 294, in <module>
    from . import _htmlparser
  File "D:\Python\lib\site-packages\bs4\builder\_htmlparser.py", line 7, in <module>
    from html.parser import (
ImportError: cannot import name 'HTMLParseError'

 还有想问问大家安装ps4的时候用的都是哪个版本的python!!!!


慕仔0082234
浏览 5380回答 1
1回答

无无法师

Python3.6,python3.5,python2.7我都用。在anaconda里面配置python虚拟环境非常简单,3个版本一起跑没有问题
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python