如何在 Ubuntu 22 中为 Python 设置 pin-1?

如何在 Ubuntu 22 中为 Python 设置 pin-1?

我尝试安装法罗卡在 Ubuntu 22.04 上。我首先尝试使用 conda(按照建议),然后再次尝试使用 mamba(按照建议)。但安装没有成功。我尝试从源代码安装,但我需要安装指示的依赖项。第一个依赖项是 bcbio-gff,但在从 conda 安装(conda install bcbio-gff)时,我收到错误:

$ conda install bcbio-gff
Channels:
 - conda-forge
 - bioconda
 - defaults
Platform: linux-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 bcbio-gff-0.6.2-py_0 requires bx-python, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ bcbio-gff is installable and it requires
│  └─ bx-python with the potential options
│     ├─ bx-python [0.10.0|0.8.13|0.9.0] would require
│     │  └─ python >=3.10,<3.11.0a0 , which can be installed;
...
└─ pin-1 is not installable because it requires
   └─ python 3.11.* , 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')

我遇到了同样的错误,conda install bx-python因此我安装了 python 3.12(conda install python=3.12),因为我认为它比 3.11 更先进,但现在我收到了错误:

...
└─ pin-1 is not installable because it requires
   └─ python 3.12.* , which conflicts with any installable versions previously reported.

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

因此,我认为错误不是出在 python 的版本上,而是出在上游的某个地方。

我该如何正确安装这些软件包?我该如何解决这个 pin-1 问题?首先,pin-1 是什么?

谢谢

答案1

尝试在命令行中添加 python=3.10

conda 安装 bcbio-gff python=3.10

相关内容