无法使用Conda安装Cartopy 0.17

时间:2020-02-27 16:27:38

标签: python anaconda conda cartopy conda-forge

由于this bug fix,我需要将Cartopy的0.16更新为0.17。

bash命令conda list | grep cartopy返回:

cartopy                   0.16.0   

然后我做conda update cartopy

我得到:

Collecting package metadata (current_repodata.json): done
Solving environment: done

# All requested packages already installed.

但是再次检查,我仍然有0.16的Cartopy。

我也尝试了以下命令:

conda install -c conda-forge cartopy(仅安装0.16)和conda install cartopy=0.17,使我了解一长串以以下内容开头的回报:

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. Examining conflict for conda basemap scipy python mkl_fft twyt...

但是它最终不会更新Cartopy。

有人知道我如何使用conda 获得新版本吗?

1 个答案:

答案 0 :(得分:1)

您当前的环境中似乎有一些软件包与cartopy的较新版本冲突。我建议为该cartopy版本创建一个单独的环境:

conda create -n <someName> python=<your desired version> cartopy=0.17 <other packages you may need>