小编Raf*_*af8的帖子

'BeautifulSoup'没有属性'__version__'

使用jupyter笔记本时使用代码

from bs4 import BeautifulSoup
print ("BeautifulSoup version:%6.6s" %BeautifulSoup.__version__)
Run Code Online (Sandbox Code Playgroud)

我收到了这个错误

AttributeError:类型对象'BeautifulSoup'没有属性' version '

我使用python setup.py install安装了bs4.它在安装中显示"c:\ users ...\anaconda3\lib\site-packages\beautifulsoup4-4.4.1-py3.5.egg"

python beautifulsoup ipython

3
推荐指数
1
解决办法
954
查看次数

标签 统计

beautifulsoup ×1

ipython ×1

python ×1