信达CUDA驱动在尝试安装CartoPy时出现的问题

问题描述 投票:0回答:1

我最近一直在尝试安装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,回复的内容也有点让我头疼。

我该如何解决这个错误?谢谢大家的帮助!

python python-3.x conda cartopy
1个回答
0
投票

看起来 Anaconda 的主频道目前没有 CartoPy for Python 3.8 的构建。你需要换成 Python 3.7,或者从 conda-forge 安装 -- 但我不知道如何给 Anaconda Navigator 添加一个通道。所以我采取的路径是。

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

用cartopy创建一个新的环境 并通过命令行激活它.

© www.soinside.com 2019 - 2024. All rights reserved.