I am building a package in Cython. I am using the following as the structure for setup.py:
setup.py
from distutils.core import setup from distutils.exten
I had the same error for torchvision. FIxed it by downgrading the installation versions:
torchvision
pip install torch==1.2.0+cu92 torchvision==0.4.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html