Last active
September 30, 2024 07:05
-
-
Save aiwantaozi/6a795d64caa831a4c9b34fe2c5208fbe to your computer and use it in GitHub Desktop.
Windows arm python logs
This file contains hidden or 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
import platform | |
platform.machine() | |
platform.architecture() | |
import sysconfig | |
print(sysconfig.get_platform()) | |
import os | |
print(os.environ.get('PROCESSOR_ARCHITEW6432')) | |
print(os.environ.get('PROCESSOR_ARCHITECTURE')) | |
print(os.environ.get('PROCESSOR_IDENTIFIER')) | |
python 3.12 | |
>>> import platform | |
>>> platform.machine() | |
'ARM64' | |
>>> platform.architecture() | |
('64bit', 'WindowsPE') | |
>>> import sysconfig | |
>>> print(sysconfig.get_platform()) | |
win-amd64 | |
>>> import os | |
>>> print(os.environ.get('PROCESSOR_ARCHITEW6432')) | |
None | |
>>> print(os.environ.get('PROCESSOR_ARCHITECTURE')) | |
AMD64 | |
>>> print(os.environ.get('PROCESSOR_IDENTIFIER')) | |
ARMv8 (64-bit) Family 8 Model 1 Revision 201, Qualcomm Technologies Inc | |
https://github.com/pyinstaller/pyinstaller/pull/8335 | |
python 3.11 | |
>>> import platform | |
>>> platform.machine() | |
'AMD64' | |
>>> | |
>>> platform.architecture() | |
('64bit', 'WindowsPE') | |
>>> | |
>>> import sysconfig | |
>>> print(sysconfig.get_platform()) | |
win-amd64 | |
>>> | |
>>> import os | |
>>> print(os.environ.get('PROCESSOR_ARCHITEW6432')) | |
None | |
>>> print(os.environ.get('PROCESSOR_ARCHITECTURE')) | |
AMD64 | |
>>> print(os.environ.get('PROCESSOR_IDENTIFIER')) | |
ARMv8 (64-bit) Family 8 Model 1 Revision 201, Qualcomm Technologies Inc | |
https://github.com/python/cpython/blob/3.12/Lib/platform.py#L767 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment