It sounds as if you can use the 32-bit library from 64-bit Python. There seems to be an unofficial 64-bit Numpy available for Snow Leopard .
EDIT: Python 2.6.dmg is available here really 32-bit. (In particular, it is a universal binary file containing versions of i386 and ppc). The same can be said for the standard numpy and scipy.dmg releases available here . (How do I know? See below!) So, if you use these releases together, you should be fine.
But you are not fine - therefore I assume that you are not using the Python version from 2.6.dmg you downloaded. If you are using an executable python script, for example:
$ ./my-script.py
then you can try specifying Python that you explicitly use on the command line. It looks like MacPython.dmg is installed in / usr / local / bin / python, so try:
$ /usr/local/bin/python2.6 myscript.py
Any joy?
As I defined the architecture, the contents of these .dmg files are built for ...
- Install .dmg (i.e. double click it to open volumes)
Use gunzip and pax to unpack the contents of the package into a local directory, for example:
$ mkdir tmp $ cd tmp $ gunzip -c /Volumes/Universal\ MacPython\ 2.6/MacPython.mpkg/Contents/Packages/PythonUnixTools-2.6.pkg/Contents/Archive.pax.gz | pax
Use file to view binary files in package contents
$ file Versions/2.6/bin/python Versions/2.6/bin/python: Mach-O universal binary with 2 architectures Versions/2.6/bin/python (for architecture ppc): Mach-O executable ppc Versions/2.6/bin/python (for architecture i386): Mach-O executable i386
Simon whitaker
source share