How can I check my BeautifulSoup version and revert it to an older version?
·
Answer a question
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
Answers
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__)
更多推荐

所有评论(0)