#1
  1. Reinvent the Circle
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Location
    Jonesville, MI
    Posts
    218
    Rep Power
    16

    Question How do I install modules? (using ActiveState)


    I am using ActiveState's distro of Python, and I need to install my first few modules. Is there a central/authoritative location for modules like Perl's CPAN? Once I download a module anyway, I need to do something do "install" it, I think. Or at least for most modules.

    Specifically, I am wanting to install wx modules for use with SF's drPython.

    Thanks.
    -Yanno

    "If it will have to be done more than once, don't do it. Make something that does it for you."

    "If you want to get out of the box, you must not think outside the box, you must think about the box. In fact, think about destroying the box."
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Almost all Python modules will come with a setup script: incidentally called ?setup.py?. In these cases all you need to do is to run this script to install the program. This is covered very well in the ?installing Python modules? section of the Python documents (below).

    http://www.python.org/doc/2.4/inst/inst.html

    As for CPAN, the closest we have to this right now is the PyPI or Python Package Index. It's considerably smaller but it's still one of th first place I would look for a much needed Python module; a very close second to Google .

    http://www.python.org/pypi

    Hope this helps,

    Mark.
    programming language development: www.netytan.com Hula

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    89
    Rep Power
    13
    http://py.vaults.ca/apyllo.py

IMN logo majestic logo threadwatch logo seochat tools logo