[Tutor] Installing module and running

Walter Prins wprins at gmail.com
Tue Jul 19 11:15:49 CEST 2011


Hi David,


On 19 July 2011 09:45, David Merrick <merrickdav at gmail.com> wrote:

> I want to install the first module
>
> http://code.google.com/p/python-nose/downloads/list
>
>
What operating system?  What version of Python?

Even so, ignoring the OS and Python version issues for now (and noting that
that may affect the comments below), I'll say that normally the easiest way
to install Python packages is using the "easy_install" command which is part
of the "setuptools" package, available here:
http://pypi.python.org/pypi/setuptools#using-setuptools-and-easyinstall , by
using the command:

easy_install nose

(This assumes that easy_install is on the search path, or that your current
directory is the Python\Scripts folder already.)

Alternatively you can download the tarball (tar.gz file) you want, extract
it, then install it by changing into the folder you've extracted to and
running the "setup.py" script with an "install" parameter:

python setup.py install

(Again, this assumes that python is on your environment/shell search PATH,
and that your current folder is the root folder of the nose package, e.g.
nose-1.0.0.)

If you don't know how to extract/open tart.gz files, then install IZArc,
available here: http://www.izarc.org/


Having said all that, you really should just "easy_install nose" or perhaps
preferably "pip install nose", it's the easiest, not just for this package,
but for any other packages you might care to install into your Python
distribution...

Regards,

Walter


--
Don't be a vampire (http://slash7.com/pages/vampires)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110719/ee353173/attachment.html>


More information about the Tutor mailing list