Search code examples
pythoncondaimutils

(imutils) PackagesNotFoundError: The following packages are not available from current channels:


I'm using python 3.7 and trying to install imutils package in conda by the following:

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

They all generate the same error:

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

unless:

conda install -c conda-forge imutils

Generates:

InvalidVersionSpecError: Invalid version spec: =2.7

Solution

  • The imutils library is a non-conda package. I have installed it by pip

    pip install imutils
    

    Reference:

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