Jetson Xavier torchvision import and installation error

ImportError: cannot import name ‘PY3’ from ‘torch._six’

Getting this error while importing torchvision.
Please help.

Hi,

Could you share the JetPack, PyTorch, and Torchvision versions you used with us?

Please note the PyTorch and Torchvision versions need to be matched.
You can find this information in the below topic:
https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048

Select the version of torchvision to download depending on the version of PyTorch that you have installed:

  • PyTorch v1.0 - torchvision v0.2.2
  • PyTorch v1.1 - torchvision v0.3.0
  • PyTorch v1.2 - torchvision v0.4.0
  • PyTorch v1.3 - torchvision v0.4.2

Thanks.

I am using torch version 1.8 and torchvision 0.9

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi,

Could get the version with torch.__version__ and torchvision.__version__ and share it with us?
Just want to confirm the detailed version first.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.