News for hackers. Stuff that matters.
Re:Better Python Scraping - Installing lxml and Beautiful Soup by lamby on Tuesday June 28, 2011 @09:15AM (#2705241)
Why not "sudo apt-get install python-lxml python-beautifulsoup"? Difficult to make the "olde" argument when you're installing dependencies from apt.
Re:Better Python Scraping - Installing lxml and Beautiful Soup by pavel_lishin on Tuesday June 28, 2011 @11:20AM (#2705738)
That doesn't work with virtualenv, does it? The advantage of pip and easy_install is that you can install it per project without fucking up global dependencies, etc.
Re:Better Python Scraping - Installing lxml and Beautiful Soup by ianb on Tuesday June 28, 2011 @12:13PM (#2705943)
It should be fine as long as you don't use --no-site-packages
Re:Better Python Scraping - Installing lxml and Beautiful Soup by wesleyzhao on Tuesday June 28, 2011 @09:27AM (#2705284)
Does that work? If I remember correctly I may have tried that and it was one of the things that failed. Something would not compile I believe. I am still a noob so if that works and I just messed it up I wouldn't be surprised. Do you know by experience that is all you need?
Re:Better Python Scraping - Installing lxml and Beautiful Soup by oinksoft on Tuesday June 28, 2011 @10:57AM (#2705637)
... of course it will work. And there's no compilation step involved, either, as I've never encountered a Debian package that was not a binary distribution (but maybe there are some, requiring build-essential? This package surely does not depend on build-essential).
Re:Better Python Scraping - Installing lxml and Beautiful Soup by wesleyzhao on Tuesday June 28, 2011 @03:07PM (#2706803)
I'll run this on a clean Ubuntu instance and if this works I'll update my post! Thanks!!
Re:Better Python Scraping - Installing lxml and Beautiful Soup by danohuiginn on Tuesday June 28, 2011 @01:42PM (#2706334)
yes, that's really all you need. I've just tried on a couple of different versions of ubuntu, and it worked on them all.

If you find a version of ubuntu or debian where that doesn't work, file a bug!

Re:Better Python Scraping - Installing lxml and Beautiful Soup by VuongN on Tuesday June 28, 2011 @09:38AM (#2705316)
Worked for me when I did it on Debain Squeeze. I later ended up uninstalling the apt-get version and install the newer version from pipy via pip.
Re:Better Python Scraping - Installing lxml and Beautiful Soup by wesleyzhao on Tuesday June 28, 2011 @10:01AM (#2705402)
Interesting - so would this not have worked for my Ubuntu ami instance or my Ubuntu home machine?
Re:Better Python Scraping - Installing lxml and Beautiful Soup by oinksoft on Tuesday June 28, 2011 @10:58AM (#2705643)
I can't speak for Ubuntu, but it's supposed to be reasonably stable and there is absolutely no reason to believe that package installation for this sort of software would differ between machines.
Re:Better Python Scraping - Installing lxml and Beautiful Soup by kevindication on Tuesday June 28, 2011 @12:13PM (#2705941)
Works just fine on Ubuntu.
Re:Better Python Scraping - Installing lxml and Beautiful Soup by wesleyzhao on Tuesday June 28, 2011 @06:46PM (#2707674)
Just tried that on a new Ubuntu instance...it worked!!! Wow...