Skip to content

Instantly share code, notes, and snippets.

@callezenwaka
Last active November 9, 2022 07:52
Show Gist options
  • Save callezenwaka/4d6f0221efb5953d91bb39e79f8d87c5 to your computer and use it in GitHub Desktop.
Save callezenwaka/4d6f0221efb5953d91bb39e79f8d87c5 to your computer and use it in GitHub Desktop.
How To Check If Python Is 32 Or 64-bit
# First import struct module.
import struct
# Return 64 means 64-bit version, return 32 means 32-bit version.
version = struct.calcsize("P") * 8
print(version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment