If you’re using Python 2.6 above, you can use sys.maxsize to find out whether you have the 32-bit or the 64-bit version installed:
import sys
is_64bits = sys.maxsize > 2**32
print is_64bits
Here’s a screenshot of example output:
If you’re using Python 2.6 above, you can use sys.maxsize to find out whether you have the 32-bit or the 64-bit version installed:
import sys
is_64bits = sys.maxsize > 2**32
print is_64bits
Here’s a screenshot of example output: