Re: install BS4 on python 3.2

1,700 views
Skip to first unread message

Link Swanson

unread,
Jul 23, 2012, 8:46:54 AM7/23/12
to beauti...@googlegroups.com

Did you run setup.py from the bs4 directory? Like:

python setup.py install

On Jul 22, 2012 4:35 PM, "Randy Long" <gisdu...@gmail.com> wrote:
Hi all,
I'm trying to use bs4 for some html scraping. I have downloaded and installed the bs4 directory and opened up a python session, but when I try to import bs4, python is not finding the module. When I unzipped the bs4 file, should I place all the .py files in my module directory?

thanks,

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beautifulsoup/-/c22SFJGRmNUJ.
To post to this group, send email to beauti...@googlegroups.com.
To unsubscribe from this group, send email to beautifulsou...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beautifulsoup?hl=en.

Randy Long

unread,
Jul 24, 2012, 11:05:48 AM7/24/12
to beauti...@googlegroups.com
No, I didn't. Damn!
That simple?


On Monday, July 23, 2012 5:46:54 AM UTC-7, LunkRat wrote:

Did you run setup.py from the bs4 directory? Like:

python setup.py install

On Jul 22, 2012 4:35 PM, "Randy Long" <gisdu...@gmail.com> wrote:
Hi all,
I'm trying to use bs4 for some html scraping. I have downloaded and installed the bs4 directory and opened up a python session, but when I try to import bs4, python is not finding the module. When I unzipped the bs4 file, should I place all the .py files in my module directory?

thanks,

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beautifulsoup/-/c22SFJGRmNUJ.
To post to this group, send email to beauti...@googlegroups.com.
To unsubscribe from this group, send email to beautifulsoup+unsubscribe@googlegroups.com.

Link Swanson

unread,
Jul 24, 2012, 11:17:19 AM7/24/12
to beauti...@googlegroups.com
That's all I ever do when I install it. You can have the unzipped bs4 directory anywhere on your system, then run the included setup.py and it will lay eggs in your Python directory

To view this discussion on the web visit https://groups.google.com/d/msg/beautifulsoup/-/F0vD1Z9VHskJ.

To post to this group, send email to beauti...@googlegroups.com.
To unsubscribe from this group, send email to beautifulsou...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/beautifulsoup?hl=en.



--
Link Swanson
Must Build Digital


Randy Long

unread,
Jul 28, 2012, 12:36:59 PM7/28/12
to beauti...@googlegroups.com
Lunkrat,
I did run the setup.py, but no go. Do I have to re-boot the pc when I've run the setup?

Tom

unread,
Jul 28, 2012, 2:18:33 PM7/28/12
to beauti...@googlegroups.com
Hey Randy,
        I created this little pdf to help someone else install easyinstall in order to download bs4 and other python libraries... I am running python 2.7 but the different version should not matter... follow those instructions and once you have easyinstall installed to your python scripts folder (C:\Python32\Scripts  - or something similar) then in the command prompt type...

C:\Python32\Scripts\pip install BeautifulSoup4

and it should go out grab the correct files and install them correctly in your directory... 

Goodluck! Im a GIS specialist as well haha

Tom
Installing Easy_Install.pdf

Randy Long

unread,
Jul 28, 2012, 5:18:47 PM7/28/12
to beauti...@googlegroups.com
I tried the easy install and it said"you need python version 2.7". Maybe I should just downgrade to 2.7?

Tom Booth

unread,
Jul 28, 2012, 5:40:55 PM7/28/12
to beauti...@googlegroups.com
Well i chose 2.7 bc most libraries out there.. Or at the time were built for 2.7 and not for 3.0. 2.7 works great for me so i would say give that a try then

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beautifulsoup/-/f8Nclnpf3JYJ.

To post to this group, send email to beauti...@googlegroups.com.
To unsubscribe from this group, send email to beautifulsou...@googlegroups.com.

Randy Long

unread,
Jul 29, 2012, 1:39:58 AM7/29/12
to beauti...@googlegroups.com
Tom, you are THE MAN!. It's working wonderfully! Many thanks! And once I get some data crunched, I'll let you know!
To unsubscribe from this group, send email to beautifulsoup+unsubscribe@googlegroups.com.

Thomas Kluyver

unread,
Aug 2, 2012, 7:06:16 AM8/2/12
to beauti...@googlegroups.com
On Saturday, 28 July 2012 19:18:33 UTC+1, Tom wrote:
I created this little pdf to help someone else install easyinstall in order to download bs4 and other python libraries... I am running python 2.7 but the different version should not matter...

You link to setuptools, which is unmaintained and won't work on Python 3. It's a good idea to point to distribute instead - it's a fork of setuptools that's still maintained, and works with Python 2 and 3:

http://pypi.python.org/pypi/distribute

Best wishes,
Thomas

Link Swanson

unread,
Sep 12, 2012, 10:10:38 AM9/12/12
to beauti...@googlegroups.com
Igor, 

Do you use PuTTY on Win7 to get an SSH connection to your Linux server? This is what I would do:

From a command line on your Linux server, use wget to download the latest bs4 directly to your server, untar it, and run setup.py:

you@your-server$: tar xzvf beautifulsoup4-4.1.3.tar.gz
you@your-server$: cd beautifulsoup4-4.1.3 && sudo python setup.py install

I think this is what you are after based on your question. 

- Link


On Wed, Sep 12, 2012 at 7:43 AM, Igor Savinkin <igor.s...@gmail.com> wrote:
I have my python package at remote server machine under linux, that's where i run python files. But i work at home under Win 7. How can i install bs to remote machine under linux. Would you guideline step by step? I have just  beautifulsoup4-4.1.3.tar.gzpackage on my desktop.  

вторник, 24 июля 2012 г., 19:17:19 UTC+4 пользователь LunkRat написал:
That's all I ever do when I install it. You can have the unzipped bs4 directory anywhere on your system, then run the included setup.py and it will lay eggs in your Python directory

On Tue, Jul 24, 2012 at 10:05 AM, Randy Long <gisdu...@gmail.com> wrote:
No, I didn't. Damn!
That simple?


On Monday, July 23, 2012 5:46:54 AM UTC-7, LunkRat wrote:

Did you run setup.py from the bs4 directory? Like:

python setup.py install

On Jul 22, 2012 4:35 PM, "Randy Long" <gisdu...@gmail.com> wrote:
Hi all,
I'm trying to use bs4 for some html scraping. I have downloaded and installed the bs4 directory and opened up a python session, but when I try to import bs4, python is not finding the module. When I unzipped the bs4 file, should I place all the .py files in my module directory?

thanks,

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beautifulsoup/-/c22SFJGRmNUJ.
To post to this group, send email to beauti...@googlegroups.com.
To unsubscribe from this group, send email to beautifulsou...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/beautifulsoup?hl=en.

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beautifulsoup/-/F0vD1Z9VHskJ.

To post to this group, send email to beauti...@googlegroups.com.
To unsubscribe from this group, send email to beautifulsou...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/beautifulsoup?hl=en.



--
Link Swanson
Must Build Digital


--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beautifulsoup/-/KiByT4OUlQ4J.

To post to this group, send email to beauti...@googlegroups.com.
To unsubscribe from this group, send email to beautifulsou...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beautifulsoup?hl=en.

Igor Savinkin

unread,
Sep 13, 2012, 2:10:03 AM9/13/12
to beauti...@googlegroups.com
Thank you, Link, i did as you suggested with a success, how about my python files, should they be located in bs4 folder if i import bs4 or it's not nessasary? 
Igor Savinkin, +7 929-593-84-67
Skype: igorsavinkin
Moscow, Russian Federation.
In Him.

Link Swanson

unread,
Sep 13, 2012, 11:33:37 AM9/13/12
to beauti...@googlegroups.com
No, you can run your scripts from anywhere once you have installed bs4. Python's import statements look for modules in the Python directory, not the cwd. 

Link

Igor Savinkin

unread,
Sep 13, 2012, 12:00:31 PM9/13/12
to beauti...@googlegroups.com
Thank you, Link, a lot.

Sammie

unread,
Oct 15, 2012, 11:48:51 AM10/15/12
to beauti...@googlegroups.com
I have trouble installing bs4 to my Python 2.6.6 installation, does BS4 supports Python 2.6.6? If it does, how do I install it?
I appreciate any help, Thanks

-Sammie

Aaron DeVore

unread,
Oct 15, 2012, 1:43:37 PM10/15/12
to beauti...@googlegroups.com
It absolutely supports 2.6.6. What platform are you using? If it's
Linux, what distro and version?

-Aaron DeVore
> --
> You received this message because you are subscribed to the Google Groups
> "beautifulsoup" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/beautifulsoup/-/2oaTiyKG5VIJ.

Igor Savinkin

unread,
Oct 16, 2012, 1:03:05 AM10/16/12
to beauti...@googlegroups.com
I work on Debian. But the problem is fixed, thank you.

Aaron DeVore

unread,
Oct 16, 2012, 1:13:52 AM10/16/12
to beauti...@googlegroups.com
Oh, the joys of someone having replied to a preexisting thread...

-Aaron

Sam Wong

unread,
Oct 16, 2012, 3:46:25 PM10/16/12
to beauti...@googlegroups.com
My Python 2.6.6 is on Windows 7 PC, I downloaded the latest BS4 and type the following:
Python setup.py install

It does not install for some reason.
I wonder anyone has done it for Python 2.6 (Windows 7) and give me some help.

Thanks

-Sam
Reply all
Reply to author
Forward
0 new messages