0

我正在使用 python 3.7 并尝试imutils通过以下方式在 conda 中安装软件包:

conda install imutils
conda install -c mlgill imutils=0.5.4
conda install -c conda-forge/label/cf202003 imutils=0.5.4
conda install -c conda-forge imutils

它们都产生相同的错误:

Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - imutils

Current channels:

  - https://repo.continuum.io/pkgs/main/linux-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/linux-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/linux-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/linux-64
  - https://repo.continuum.io/pkgs/pro/noarch

除非:

conda install -c conda-forge imutils

生成:

InvalidVersionSpecError: Invalid version spec: =2.7
4

1 回答 1

0

imutils 库是一个非 conda 包。我已经安装了pip

pip install imutils

参考:

https://github.com/jrosebr1/imutils/issues/24#issuecomment-359399161

于 2021-04-10T02:45:07.273 回答