In addition to the python binary, you needs the python backend files which can be found in the SDP.
Depending on the QPKGs installed on your dev host, the required files are located in:
Python QPKGs for 7.0: <qnx700_install_root>/target/qnx7/aarch64le/usr/lib/python2.7
For older Python QPKGs for 7.1: <qnx710_install_root>/target/qnx7/aarch64le/usr/lib/python3.8
For newer Python QPKGs for 7.1 (~Nov 2021 and onward): <qnx710_install_root>/target/qnx7/usr/lib/python3.8
NOTE 1: python expects the python files to be on the target in a specific location.
> For 7.1 python3, the target path is /usr/lib/python3.8
NOTE 2: if you add these files from the SDP path to the target image filesystem (IFS), the IFS size becomes too huge to boot. So the best way is to copy this entire directory from the host PC to a non-volatile memory in the target, such as SD card.
Please contact us with your questions or concerns.