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

David Cournapeau cournape@gmail....
Tue Oct 19 17:09:54 CDT 2010

On Wed, Oct 20, 2010 at 6:54 AM, Vincent Davis <vincent@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,



More information about the NumPy-Discussion mailing list