How to cross compile any python package for Jetson TX2 on the host PC

I have installed the aarch64-linux libraries using JetPack installation. As of now I want to cross compile PyTorch for TX2. Can we follow a common method to cross compile the python packages from source.


It’s recommended to compile pyTorch directly on the platform to avoid dependencies.
Here is a script from the community for your reference: