no module named torchvision
时间: 2023-08-14 14:07:13 浏览: 201
解决Jupyter Notebook:no module named….但实际已经pip install 的问题
5星 · 资源好评率100%
It seems that you are encountering an error related to the 'torchvision' module. This error typically occurs when the 'torchvision' library is not installed in your Python environment.
To resolve this issue, you can install the 'torchvision' library by running the following command in your terminal or command prompt:
```
pip install torchvision
```
Make sure that you have the latest version of pip installed before running this command. If you are using Anaconda, you can try installing 'torchvision' using conda:
```
conda install torchvision
```
Once the installation is complete, you should be able to import 'torchvision' in your Python script without any issues.
阅读全文