[Numpy-discussion] how to ask numpy what bit version it is running (32/64)

Jonathan Rocher jrocher at enthought.com
Tue Oct 19 18:13:13 EDT 2010


Hi,

If you directly want to know if it is a 32 or 64 bits, you can also use
import platform
print platform.architecture()

Best,
Jonathan

On Tue, Oct 19, 2010 at 5:09 PM, David Cournapeau <cournape at gmail.com>wrote:

> On Wed, Oct 20, 2010 at 6:54 AM, Vincent Davis <vincent at vincentdavis.net>
> wrote:
> > What is the best/good way to know what version of numpy is running (32
> > or 64 bit).
>
> import platform
> print platform.machine()
>
> > Showing my ignorance maybe but does it always match the python version
> > that is running, which can be ask/tested using sys.maxint?
>
> Yes, I don't know any system which enables you do load a 32 bits
> extension into a 64 bits. Neither windows, mac or linux can at least,
>
> cheers,
>
> David
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
Jonathan Rocher,
Enthought, Inc.
jrocher at enthought.com
1-512-536-1057
http://www.enthought.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20101019/5a00e2b4/attachment.html>


More information about the NumPy-Discussion mailing list