PackagesNotFoundError: The following packages are not available from current channels: - torchvision
时间: 2024-01-25 22:13:13 浏览: 125
PackagesNotFoundError: The following packages are not available from current channels, such as torchvision, usually occur when the desired package is not found in the default channels of Anaconda. This can happen if the package is not yet available or if the channels you are using do not have the package.
To resolve this issue, you can try the following steps:
1. Update conda:
```shell
conda update conda
```
2. Try installing the package from a different channel:
```shell
conda install -c pytorch torchvision
```
3. If the package is still not found, you can manually download the package and install it using the `pip` command. First, download the package from the PyPI website (https://pypi.org/) or other trusted sources. Then, navigate to the directory where the downloaded package is located and use the following command to install it:
```shell
pip install <package_name>.whl
```
Please note that manually downloading and installing packages may have dependencies that need to be resolved separately. Make sure to check the package documentation for any additional requirements.
阅读全文