[Tutor] Installing Modules

Walter Prins wprins at gmail.com
Wed Jan 18 20:01:57 CET 2012


Hi,

On 18 January 2012 18:07, Downey, Patrick <PDowney at urban.org> wrote:

> I'm currently running Python version 2.7 through IDLE on a Windows machine.
> I'm trying to use numpy and scipy. I downloaded both modules from the scipy
> website and unzipped the files into:
> C:\Python27\Lib\site-packages
>

Generally, manually installing modules/packages into site-packages should
be the last option you choose for installing 3rd party modules/packages
into your Python environment.  For Windows machines, you should, in order
of preference (IMHO) choose:
1.) A customer installer package (.exe. file or .msi file) built for your
specific bit version of Windows (ie 32 or 64 bit) and for your specific
version of Python (e.g. 2.7, 3.2 etc.)
2.) Install via Python's generic package management support e.g. via one of:
distribute
pip
setuptools
These tools make it trivial to install most non-platform-specific modules
from a central repository using a single command, removing the need to know
where to get them or how to install them.
3.) Direct installation via an included "setup.py" script:  Most Python
packages include an installation script intended to install the package
into your Python environment correctly, usually via the command:
python setup.py install
4.) Manually copying/installing into your Python environment.

In your case, there are Windows .exe based installers available for Windows
32 bit for Python 2.7 for both SciPy and NumPy so I'd suggest you remove
your manual attempts and re-install using one of the pre-built installers.

HTH,

Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120118/5af8e1bf/attachment-0001.html>


More information about the Tutor mailing list