无法在最新版本的Anaconda中安装pyocd

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

我正在尝试在新的 Windows 10 PC 上设置我们常用的 Anaconda 开发环境。我上周下载了最新版本的 Anaconda(我相信是版本 2023.09),但在安装 pyocd 时遇到问题。几个月前,pyocd 在所有其他 PC 上轻松安装。

我在管理员模式下使用 Anaconda Powershell Prompt 运行 conda。这是 conda 返回的内容:

(base) PS C:\WINDOWS\system32> conda install -c conda-forge pyocd
>> Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using 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 each other:

Output in format: Requested package -> Available versions

错误消息非常无益 - 我会尝试安装 downrev 软件包,但我不知道要降级哪些软件包。有什么想法吗?

更新 我更新了 conda,现在它实际上给了我可操作的错误消息:

(base) PS C:\WINDOWS\system32> conda install -c conda-forge pyocd
>> Channels:
 - conda-forge
 - defaults
 - anaconda Platform: win-64 
Collecting package metadata (repodata.json): done 
Solving environment: | warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package pyocd-0.34.0-pyhd8ed1ab_0 requires cmsis-pack-manager >=0.4.0,<1.0, but none of the providers can be installed

Could not solve for environment specs  The following packages are incompatible 
├─ pin-1 is installable and it requires  
│  └─ python 3.11.* , which can be installed; 
└─ pyocd is not installable because it requires 
   └─ cmsis-pack-manager >=0.4.0,<1.0  but there are no viable options
      ├─ cmsis-pack-manager 0.4.0 would require
      │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
      ├─ cmsis-pack-manager 0.4.0 would require
      │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
      ├─ cmsis-pack-manager 0.4.0 would require
      │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
      └─ cmsis-pack-manager 0.4.0 would require
         └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported.

Pins seem to be involved in the conflict. Currently pinned specs:
 - python 3.11.* (labeled as 'pin-1')

我是一个 python/anaconda 菜鸟,所以我(还)不知道如何处理这些信息,但我正在继续努力。

anaconda conda anaconda3 pyocd
1个回答
0
投票

依赖项不适用于 Python 3.11 或更高版本

虽然

pyocd
包在技术上是
noarch
(即独立于Python版本),但它依赖于
cmsis-pack-manager
无法为Python 11+重建。维护者对该 Pull 请求发表评论以表达您构建此项目的愿望将是令人鼓舞的。或者,如果您了解其失败的原因,请贡献一个 PR。

否则,您需要在 Python 3.10 或更早版本的环境中安装该包。例如,

conda create -n py310 -c conda-forge python=3.10 pyocd
© www.soinside.com 2019 - 2024. All rights reserved.