Can't install beautifulsoup4 using easy_install beautifulsoup

1,267 views
Skip to first unread message

Stephen Cranney

unread,
Feb 12, 2014, 9:32:50 AM2/12/14
to beauti...@googlegroups.com
Hi all, if this is too simple then please forgive me, but I'm new to Python and the tech support guy at my university can't figure it out either.

I'm trying to install beautifulsoup4 onto my computer. I use "easy_install beautifulsoup4," but get an error message (I pasted the syntax below). As you can see, I'm using Python 2.7.6, which should be compatible with beautifulsoup. However, when I try to install pip I also get an error message. I also have this problem when I use these same commands on the Python 3.3.3 shell that I'm using on the Mac. Considering that I'm getting the same results from both computers, I sense that there's some preliminary coding that has to be done before I can use the install command, but I don't know what that would be. 

Thanks in advance,

Stephen

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> pip install beautifulsoup4
SyntaxError: invalid syntax
>>> pip install beautifulsoup4
SyntaxError: invalid syntax
>>> easy_install beautifulsoup4
SyntaxError: invalid syntax
>>> $ wget http://launchpad.net/beautifulsoup/trunk/3.2/+download/BeautifulSoup-3.2.0.tar.gz
SyntaxError: invalid syntax
>>> easy_install pip
SyntaxError: invalid syntax
>>>

Leonard Richardson

unread,
Feb 12, 2014, 9:54:33 AM2/12/14
to beautifulsoup
Stephen,

pip, wget, and easy_install are commands that need to be run from the terminal, not the Python shell. I don't know what the terminal is called on Mac OS X, but I know there is one.

Hope this helps,
Leonard


--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beautifulsou...@googlegroups.com.
To post to this group, send email to beauti...@googlegroups.com.
Visit this group at http://groups.google.com/group/beautifulsoup.
For more options, visit https://groups.google.com/groups/opt_out.

Stephen Cranney

unread,
Feb 12, 2014, 1:36:35 PM2/12/14
to beauti...@googlegroups.com
So is the terminal the same as IDLE or the command line (in Windows)? Because it's not working in their either. If not, how do I access the terminal in Windows? Once again, sorry for the simple nature of this problem, and thanks in advance,

Stephen

Leonard Richardson

unread,
Feb 12, 2014, 1:44:24 PM2/12/14
to beautifulsoup
It sounds like you don't have pip installed on your computer. You're going to need to install it before you can use it. This is very difficult on Windows, but here are some options:
The question of what the terminal is called on Windows is a side issue that I don't have an answer to, but "command line" would be my guess.

Leonard

Chang-Ching Chaung

unread,
Feb 21, 2014, 4:39:23 AM2/21/14
to beauti...@googlegroups.com
I have encountered the same problem, the following is my solution:
Second, set up the windows environment variable, that means you should add "C:/pythonXX/Scripts" in Path like that. (XX is your version)
Third, open command line, type "pip install beautifulsoup4", then it will begin installing.
If it show that "successfully installed", then it can work.

Hope this way works.

Stephen Cranney

unread,
Feb 24, 2014, 11:30:41 AM2/24/14
to beauti...@googlegroups.com
I finally figured it out. I had to manually install it using the normal python setup.py install from the terminal. Thanks everybody for your help!

Cameron Simpson

unread,
Mar 10, 2014, 5:18:19 AM3/10/14
to beauti...@googlegroups.com
On 12Feb2014 09:54, Leonard Richardson <leon...@segfault.org> wrote:
> pip, wget, and easy_install are commands that need to be run from the
> terminal, not the Python shell. I don't know what the terminal is called on
> Mac OS X, but I know there is one.

Chuckle. It's called "Terminal".

Cheers,
Cameron Simpson <c...@zip.com.au>
Reply all
Reply to author
Forward
0 new messages