No module named ‘torch.utils‘

torch版本不够

conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch

Fetching package metadata ...............................
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - pytorch ==1.1.0 -> cudatoolkit >=10.0,<10.1
  - torchaudio -> pytorch 1.10.0 -> cudatoolkit >=10.2,<10.3
Use "conda info " to see the dependencies for each package.
显示错误,写入下面内容升级

conda update conda

No module named ‘torch.utils‘_第1张图片

 

你可能感兴趣的:(pytorch,深度学习,人工智能)