import torchvision: cannot import name ‘Optional‘ from ‘torch.jit.annotations错误的解决
python3.7环境使用conda安装pytoch,按官网指令,匹配正确版本安装后,import torch正确,import torchvision总是报错cannot import name 'Optional' from 'torch.jit.annotations,卸载更换多套版本均一样,最后,随便选了个匹配cuda的版本(0.7.0),用pip3 install torchvision==0.7.0安装,会自己下载torchvision0.7.0和对应的torch1.6.0,然后又自