Do I have Numpy 32 bit or 64 bit?

How to check if my installed version of numpy 32bit or 64bit is installed?

Bonus points for a solution that works inside a script and is system independent.

+10
source share
2 answers
In [65]: import numpy.distutils.system_info as sysinfo In [69]: sysinfo.platform_bits Out[69]: 64 

This is based on the value returned by platform.architecture() :

 In [71]: import platform In [72]: platform.architecture() Out[74]: ('64bit', 'ELF') 
+20
source

64-bit python will not load 32-bit NumPy (at least that was my experience with 2.7.10 python and the β€œofficial” NumPy distribution for Windows). So run Python (if you have a 32-bit version and a 64-bit version, do this for everyone), and then try to import the NumPy module. If it works with 32-bit Python, then this is a 32-bit version of NumPy. If it works with 64-bit Python, then this is a 64-bit version of NumPy.

+5
source

All Articles