Hi @jiangwei.wang, it seems this error is unrelated to installing PyTorch pre-requisites. Instead it may be from using OTA update with a different carrier board - please see this post:
You may want to re-flash your device with ConnectTech’s BSP for the latest JetPack release.