python 32 or 64 bit code example
Example 1: check 32 or 64 bit python
import sys
sys.maxsize > 2**32
# it should display True in case of 64bit and False in case of 32bit
Example 2: python 64 bit
# Latest stable release
windows = "https://www.python.org/ftp/python/3.9.4/python-3.9.4-amd64.exe"
macOS = "https://www.python.org/ftp/python/3.9.4/python-3.9.4-macos11.pkg"
Example 3: check python 32 or 64
# from your Windows/Linux shell run:
python -c "import sys; print(sys.maxsize > 2**32);"
# True --> 64 bits, False --> 32 bits