python - `conda install` 报告找不到 `conda search` 找到的包?

标签 python anaconda conda

我在尝试安装软件包时收到此错误:

(pybert-tst)
dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyBERT
$ conda install -c dbanas pybert
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: failed


UnsatisfiableError: The following specifications were found to be in conflict:
  - pybert
Use "conda search <package> --info" to see the dependencies for each package.

但是,当我搜索时,我看到了 pybert 包:

(pybert-tst)
dbanas@Davids-MacBook-Pro:~/Documents/Projects/PyBERT
$ conda search -c dbanas pybert --info
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Loading channels: done
pybert 3.1.0 pyh7b7c402_2
-------------------------
file name   : pybert-3.1.0-pyh7b7c402_2.tar.bz2
name        : pybert
version     : 3.1.0
build       : pyh7b7c402_2
build number: 2
size        : 235 KB
license     : BSD License
subdir      : noarch
url         : https://conda.anaconda.org/dbanas/noarch/pybert-3.1.0-pyh7b7c402_2.tar.bz2
md5         : 9537824117ffca8bd024f74cd0f44c7a
timestamp   : 2019-07-16 22:18:08 UTC
dependencies:
  - chaco
  - docutils
  - enable
  - jinja2
  - kiwisolver
  - numpy
  - pygments
  - pyibis-ami >=3.0.0
  - python >=3.7.0,<3.8
  - scikit-rf
  - scipy
  - sphinx
  - traits
  - traitsui

有谁知道这是怎么回事吗?

最佳答案

这是由于 pybert 包的两个依赖项被锁定到 Python 2.7,而 Python 本身正在调用 Python 3.7。

如果能在错误消息中看到其他两个包的名称,我当然会很高兴。 :(

关于python - `conda install` 报告找不到 `conda search` 找到的包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57066414/

相关文章:

Python Mechanize - 为什么我无法浏览此链接?

python - 升级到 IPython 6.0 后,spyder 与 Anaconda 的 jedi 依赖问题

python - 如何激活名称中带有空格的conda env

pip - 如何找到(并安装)与 numpy 1.19.2 兼容的 pandas 版本?

python - Windows 上的 Conda 安装

python - 在 python 正则表达式中捕获重复的组

python - urllib3.exceptions.ProtocolError : ('Connection aborted.' ,错误(10054, 'An existing connection was forcibly closed by the remote host'))

python - django REST framework 多源字段

python - "the following packages will be superseded by a higher priority channel"是什么意思?

python - 带有 anaconda 和 travis 的多个 python 版本