having trouble installing beautifulsoup4

hello there,

Linode newbie (and linux newbie) here. I just signed on with linode and spun a server to play with python and beautiful soup. but I'm having trouble installing beautiful soup 4. according to the beautifulsoup documentation, to install BS4 i should type the following:

sudo apt-get install beautifulsoup4

this is what i get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python-beautifulsoup4

has anyone else had experience with beautiful soup 4 and could help me out?

Thanks!

PS. Running 10.04.4 if that makes a difference.

3 Replies

Ubuntu Lucid (10.04.4 LTS) only has beautifulsoup3 in its standard repositories. Precise (12.04 LTS) has python-beautifulsoup (which gets you 3.2.0-2) and python-bs4 (4.0.2-1).

Your options are: * upgrade to 12.04,

  • configure apt to pull bs4 from another repository,

  • install via pip.

ahh. thanks for the info. i appreciate it!

btw.. is there a way for me to tell if a package is out there but not available for my particular version of ubuntu? that would be very helpful..

@pclissold:

Ubuntu Lucid (10.04.4 LTS) only has beautifulsoup3 in its standard repositories. Precise (12.04 LTS) has python-beautifulsoup (which gets you 3.2.0-2) and python-bs4 (4.0.2-1).

Your options are: * upgrade to 12.04,

  • configure apt to pull bs4 from another repository,

  • install via pip.

http://packages.ubuntu.com/

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct