use*_*670 9 python gpu anaconda tensorflow pytorch
我正在尝试在 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 install -c anaconda tensorflow-gpu命令。最终tensorflow-gpu列在已安装列表中。
参考: https: //anaconda.org/anaconda/tensorflow-gpu
| 归档时间: | 
 | 
| 查看次数: | 5372 次 | 
| 最近记录: |