Last active
November 9, 2022 07:52
-
-
Save callezenwaka/4d6f0221efb5953d91bb39e79f8d87c5 to your computer and use it in GitHub Desktop.
How To Check If Python Is 32 Or 64-bit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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