How do I access 'Beautiful Soup' on python 2.7 or 3.4 , console or idle versions.

Ian Kelly ian.g.kelly at gmail.com
Sun May 11 19:47:17 EDT 2014


On Sun, May 11, 2014 at 5:19 PM, Simon Evans <musicalhacksaw at yahoo.co.uk> wrote:
> Yeah well at no point does the book say to start inputting the code mentioned in Python command prompt rather than the Windows command prompt, but thank you for your guidance anyway.
> I have downloaded the latest version of Beautiful Soup 4, but am again facing problems with the second line of code, re:-
> -------------------------------------------------------------------------------
>  Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\Intel Atom>cd "c:\Beautiful Soup"
>
> c:\Beautiful Soup>c:\Python27\python setup.py install
> c:\Python27\python: can't open file 'setup.py': [Errno 2] No such file or direct
> ory
> --------------------------------------------------------------------------------
> though that was the code I used before which installed okay see above). Can anyone tell me where I am going wrong ? Thanks.

The error message is telling you that the file setup.py that you're
trying to run is missing.  That would seem to indicate that Beautiful
Soup hasn't been downloaded or unzipped correctly.  What do you have
in the Beautiful Soup directory?

Also, use Python 3.4 as Terry Reedy suggested, unless the book is
using 2.7 in which case you should probably use the same version as
the book.



More information about the Python-list mailing list