【发布时间】:2020-07-19 04:46:14
【问题描述】:
我正在尝试在 Windows 10 中使用 NVIDIA-SMI: 445.75 安装 CUDA 9.0。
我的Cuda 9.0安装成功,如图来自Command-prompt
*(DL) C:\Users\User>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
**Cuda compilation tools, release **9.0**, V9.0.176***
(1) 我下载了cudnn-9.0-windows10-x64-v7.zip,将其解压缩,并将其移动到安装 Cuda 时创建的文件夹中。
(2)在Anaconda的terminal提示符下,
我输入conda install pytorch=1.1.0 torchvision=0.3.0 cudatoolkit=9.0 –c pytorch。
但是,Anaconda 提示给出以下错误
**Error messages**
*Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:
Specifications:
- pytorch=1.1.0 -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
- torchvision=0.3.0 -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
Your python: python=3.8
如果 python 位于链的最左侧,那就是您要求的版本。
当 python 出现在右侧时,这表明左侧的内容在某种程度上不适用于您受限的 python 版本。请注意,除非您明确指定,否则 conda 不会将您的 python 版本更改为不同的次要版本。
发现以下规范相互不兼容:
Output in format: Requested package -> Available versions
Package cudatoolkit conflicts for:
torchvision=0.3.0 -> cudatoolkit[version='>=10.0,<10.1|>=9.0,<9.1']
pytorch=1.1.0 -> cudatoolkit[version='>=10.0,<10.1|>=9.0,<9.1']
torchvision=0.3.0 -> pytorch[version='>=1.1.0'] -> cudatoolkit[version='>=10.1,<10.2|>=9.2,<9.3']The following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==11.0=0
Your installed CUDA driver is: 11.0*
【问题讨论】:
-
这可能已经晚了,但是当我遇到这个问题时,更新 conda 工作(可能使用了与新 Python 版本不一致的旧版本:
conda update -n base conda
标签: python tensorflow anaconda pytorch gpu