No module named 'torchvision
时间: 2023-09-05 15:08:29 浏览: 178
解决Jupyter Notebook:no module named….但实际已经pip install 的问题
5星 · 资源好评率100%
'This error message indicates that the Torchvision module is not installed in your Python environment or is not accessible. Torchvision is a package that provides popular datasets, model architectures, and image transformations for computer vision tasks in PyTorch.
To resolve this issue, you can try installing Torchvision using pip, by running the following command in your terminal or command prompt:
```
pip install torchvision
```
If you are using a virtual environment, make sure to activate it before running the command above. If the installation is successful, you should be able to import the torchvision module without any errors.
阅读全文