Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35749

Re: noob can't install python modules/scripts

References <4165a2a8-6960-4d6f-a033-07d34b78efcf@googlegroups.com> <50de6da2$0$29967$c3e8da3$5496439d@news.astraweb.com> <e67257a9-9045-476c-8a4b-a7a9cd36a03b@googlegroups.com>
Date 2012-12-29 09:33 -0500
Subject Re: noob can't install python modules/scripts
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1425.1356791647.29569.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Fri, Dec 28, 2012 at 11:40 PM, lostguru <aznjedi585@gmail.com> wrote:

> On Friday, December 28, 2012 11:12:19 PM UTC-5, Steven D'Aprano wrote:
> > "The website"? There's more than one website on the Internet. Which
> >
> > website are you referring to? What .py script did you download? How did
> >
> > you run it? Details are important!
> >
> sorry about that; I was using the setuptools package from pypi python [
> http://pypi.python.org/pypi/setuptools ]; I downloaded the ez_setup.py
> file from under the 64-bit windows installation section and ran that (by
> double clicking on it, I hope this wasn't another noob mistake lol)
> >
> > It looks like you tried to run the easy_install command from inside the
> >
> > Python interactive interpreter, rather than from your system shell.
> >
> >
> >
> > The system shell (command.com or cmd.exe I guess) will have a $ or %
> sign
> >
> > as the prompt. Python usually has >>> as the prompt, although if you are
> >
> > running ActivePython it may be something else. You need to run the
> >
> > "easy_install BeautifulSoup4" command from the system shell, not Python.
> >
> >
> >
> >
> >
> > Try that, and if there's another error, please copy and paste the exact
> >
> > command you used, and the full error message.
> >
> running easy_install from the command line worked and BeautifulSoup4 seems
> to have installed, thanks for pointing out my mistake
>
> the only problem I have now is that importing beautifulsoup into a .py
> file I wrote generates an error (I'm using ActiveState Komodo Edit 7, is
> there another program you would recommend to a beginner like me?)
>
> trying to run the script gives an import error:
> ImportError: No module named BeautifulSoup
>

You should read the BeautifulSoup tutorial/documentation.  If I remember
correctly you do

from bs4 import BeautifulSoup
Look at this tutorial to get started:
http://www.crummy.com/software/BeautifulSoup/bs4/doc/



> importing other modules like os and urllib that came with the python
> installation work without problems
>
> looking online, all I've found were other accounts talking about a
> beautifulsoup.py that should be in the C:\Python27\Lib\site-packages
> directory, but I've found no such thing from the installation anywhere in
> the Python folder (funnily enough, I did a drive search with Everything and
> found a BeautifulSoup.py in my autodesk maya installation)
>
> am I somewhere near the mark? or am I off completely?
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

noob can't install python modules/scripts lostguru <aznjedi585@gmail.com> - 2012-12-28 17:45 -0800
  Re: noob can't install python modules/scripts lostguru <aznjedi585@gmail.com> - 2012-12-28 18:36 -0800
  Re: noob can't install python modules/scripts Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-12-29 04:12 +0000
    Re: noob can't install python modules/scripts lostguru <aznjedi585@gmail.com> - 2012-12-28 20:40 -0800
      Re: noob can't install python modules/scripts Joel Goldstick <joel.goldstick@gmail.com> - 2012-12-29 09:33 -0500
        Re: noob can't install python modules/scripts lostguru <aznjedi585@gmail.com> - 2012-12-29 08:21 -0800
        Re: noob can't install python modules/scripts lostguru <aznjedi585@gmail.com> - 2012-12-29 08:21 -0800
      Re: noob can't install python modules/scripts Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-12-29 16:22 -0500

csiph-web