PyTorch安装时找不到CUDA 8相关包的问题求助
Hey there, let's work through this frustrating issue you're hitting when setting up the Facebook end-to-end negotiator chatbot. The root problem here is that channels like soumith (and even the pytorch channel) no longer host CUDA 8.0 packages—this version of CUDA is pretty outdated, so most Conda channels have phased out support for it.
Here are a few actionable solutions to get you past this roadblock:
Switch to a newer supported CUDA version
The tutorial you're following might be outdated. First, check if your GPU supports a newer CUDA version (most modern GPUs do). Then use a PyTorch installation command tailored to that version. For example, if you can use CUDA 10.2, run:conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorchThis is the simplest fix if your hardware allows it.
Try installing from conda-forge
Conda-forge sometimes retains older packages longer than other channels. Give this command a shot:conda install pytorch torchvision cudatoolkit=8.0 -c conda-forgeIf this still fails, move on to the next options.
Manually install CUDA 8.0 + use pip for PyTorch
- Download the CUDA 8.0 toolkit directly from NVIDIA's archive (pick the version matching your OS).
- Run the installer, follow the prompts, and ensure CUDA binaries are added to your system PATH.
- Install a PyTorch version explicitly compatible with CUDA 8.0 via pip. For example:
This specific version is known to work with CUDA 8.0—double-check PyTorch's release notes if you need a different build.pip install torch==1.0.1 torchvision==0.2.2
Use a pre-built Docker image
If you want to skip local installation headaches, Docker is a great option. Look for a Docker image that includes both CUDA 8.0 and a compatible PyTorch version. You can start with NVIDIA's official CUDA 8.0 base image and install PyTorch inside it, or use a pre-configured image from trusted sources.
A quick pre-check: Clear your Conda cache first with conda clean --all—sometimes cached channel data can cause false "package not found" errors.
内容的提问来源于stack exchange,提问作者lrosique

