我正在使用beautifulsoup,并且我得到一些htmlparser错误,包括开始标记等。
我在crummy的网站上读到,有一个建议是回到旧版本(3.08)。
我正在使用Ubuntu,我在那里做了:
sudo apt-get install python-beautifulsoup
安装它。
我如何检查我现在拥有的版本? 我怎样才能强制使用apt-get的特定版本? (以及如何卸载我现在拥有的)谢谢(我对Ubuntu的新手)
最新版本的Ubuntu 10.04
I am using beautifulsoup, and I am getting some htmlparser errors with start tags etc.
I read on crummy's site that one suggestion is to go back to an older version (3.08).
I am using Ubuntu, where I did:
sudo apt-get install python-beautifulsoup
to install it.
how can I check what version I have now? how can I force a specific version using apt-get? (and how to uninstall what I have now)thanks (i'm newish to ubuntu)
latest version of ubuntu 10.04
最满意答案
我在mac osx 10.5上运行同样的问题,并删除了当前版本的美丽汤
sudo apt-get remove python-beautifulsoup然后我从这个地址安装3.0.7,现在一切正常。
要知道你的模块的当前版本:
import BeautifulSoup print BeautifulSoup.__version__i run in the same problem on mac osx 10.5 and i removed the current version of beautiful soup with
sudo apt-get remove python-beautifulsoupthen i installed 3.0.7 from this address and all is now working fine.
To know the current version of you module:
import BeautifulSoup print BeautifulSoup.__version__更多推荐
发布评论