我正在尝试安装CUDA 9.0与NVIDIA: 445.75在Windows10中。
我的Cuda9.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)在terminal提示符Anaconda中,
我输入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* 发布于 2020-05-19 15:12:08
我解决了这个问题如下。
conda install -c anaconda tensorflow-gpu命令。。
最后,在已安装的列表中列出tensorflow-gpu。
发布于 2020-08-08 14:54:25
在安装rpy2时,我也遇到了同样的问题,所以这里可能也有帮助。原来是conda源头的问题。对我来说,当我使用:
conda install -c conda-forge <library_name>用你想要安装的词库替换。
发布于 2020-08-31 07:39:26
可能你在试图运行别人的代码。因此,所安装的conda与您的python版本不兼容。您的python版本可能太旧了,而conda是新版本。据我所知,您有两个选项(但都很糟糕):
1.降低了您的conda的等级
2.安装更新的并尝试运行您的代码。如果您面临错误,请尝试用编码来修复它们,例如:替换降级函数。
就像我说过的,这些解决方案不是最好的,但你可以试试
https://stackoverflow.com/questions/61072464
复制相似问题