SRL Archive - Python/Perl Help and Tutorials

installing NumPy


Awkwardsaw

2011-01-17 21:06:38

im trying to install the NumPy module,and i cant find any usefull tutorials on google.

i ran the .exe installer for python 2.7 on windows, and the source seems to be in the correct folder: c:\python 2.7\lib\whateverthefolderiscalled. but when i move the source out of the folder and into the Lib folder, it messes up the python shell :(

Dgby714

2011-01-17 21:09:00

The exe should install it, you shouldn't need to move any files.

Awkwardsaw

2011-01-17 21:25:08

your right, its just that site-packages is an odd place to put the stuff

Dgby714

2011-01-17 21:47:54

From: Awkwardsaw
your right, its just that site-packages is an odd place to put the stuff


Perl does the same thing =/

Awkwardsaw

2011-01-17 22:27:12

an other quick question, im getting a DLL error:
Traceback (most recent call last):
File "C:\Users\owner\Desktop\biorythm.py", line 3, in <module>
import pylab
File "C:\Program Files (x86)\python27\lib\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Program Files (x86)\python27\lib\matplotlib\pylab.py", line 220, in <module>
from matplotlib import mpl # pulls in most modules
File "C:\Program Files (x86)\python27\lib\matplotlib\mpl.py", line 1, in <module>
from matplotlib import artist
File "C:\Program Files (x86)\python27\lib\matplotlib\artist.py", line 6, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
File "C:\Program Files (x86)\python27\lib\matplotlib\transforms.py", line 34, in <module>
from matplotlib._path import affine_transform
File "C:\Program Files (x86)\python27\lib\matplotlib\_path.py", line 7, in <module>
__bootstrap__()
File "C:\Program Files (x86)\python27\lib\matplotlib\_path.py", line 6, in __bootstrap__
imp.load_dynamic(__name__,__file__)
ImportError: DLL load failed: %1 is not a valid Win32 application.

everything im using is 32bit, python, pylab(matplotlib), and numPy.

incase it helps, File "C:\Program Files (x86)\python27\lib\matplotlib\_path.py":

def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__,'_path.so')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()