First record the Python minor version, system bits and dependency sources on the source board, and then create a new virtual environment in the target image. Source code and test input can be migrated with the project.
Understand a wheel file name
For example, cp311 and cp310 respectively face different CPython interfaces, and aarch64 and x86_64 represent different architectures. Even if the processors are 64-bit capable, the actual running userspace will still affect the available packages. Use python -m pip debug –verbose to view the tags accepted by the target environment.
Separate installation failures and operational failures
When the installer prompts that a matching version cannot be found, first check whether the package provides the wheel for this combination. The package has been installed but the shared library is missing when importing, then check the system dependencies and loading path. To interface with GPIO, camera or NPU extensions, you also need to make an actual device call on the target board.
Deliver a rebuildable environment
Save the Python version, dependency lock file, and input samples and expected output. Before deploying the ARM host offline, you can prepare the wheel collection on the same system and architecture, and then test-install it in a clean environment to avoid temporary compilation of large dependencies during production.
Execute separately on the source board and target board
uname -m
getconf LONG_BIT
python3 -VV
python3 -m pip debug --verbose
Board documentation and references

- ArmSoM Sige5 · hardware and interface manual · Sige5 · product page
- Raspberry Pi OS Software Documentation
- Python Packaging Platform Compatibility Tag
- Raspberry Pi OS official Python environment description
