有一些美丽的htmlparse错误,如何恢复到不同的版本?(Having some beautifulsoup htmlparse errors, how to revert to a differe

编程入门 行业动态 更新时间:2024-10-26 22:18:53
有一些美丽的htmlparse错误,如何恢复到不同的版本?(Having some beautifulsoup htmlparse errors, how to revert to a different version?)

我正在使用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-beautifulsoup

then 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__

更多推荐

本文发布于:2023-08-05 18:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1437366.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   版本   美丽   htmlparse   version

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!