尝试安装CartoPy时出现Cinda CUDA驱动程序问题

2024-04-25 01:53:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我最近一直在尝试安装CartoPy。我拥有CartoPy所需的所有依赖项,但当我尝试通过Anaconda Navigator安装时,我收到以下消息:

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your
environment:

Specifications:

- cartopy -> python[version='>=2.7,<2.8.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version
you've asked for.

When python appears to the right, that indicates that the thing on the
left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.

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

我对错误消息的最后一部分感到困惑,因为CUDA驱动程序正在匹配版本(11.0)。我在谷歌上搜索过,也看到过类似的问题,但没有一个明确提到CartoPy,而且回复有点让我不知所措

如何修复此错误?谢谢你的帮助


Tags: thetoyou消息yourthatisversion
1条回答
网友
1楼 · 发布于 2024-04-25 01:53:01

看起来Anaconda的主频道目前还没有针对Python 3.8的CartoPy版本。您需要更改为Python 3.7,或者从conda forge安装,但我不知道如何向Anaconda Navigator添加通道。所以我要走的道路是:

conda create -n myenv python=3.8 cartopy 
conda activate myenv

使用cartopy创建新环境并从命令行激活它

相关问题 更多 >