New answers tagged


platform.machine() will return: armv7l on Raspberry Pi running on Raspbian 32-bit. aarch64 on all Arm 64-bit OSes, including those running in Amazon AWS Graviton2. So this is a more reliable way of detecting Arm, if your program is written for Arm, instead of Raspberry Pi specifically.

Top 50 recent answers are included