首页 > 解决方案 > How to install bob.learn.em using conda in ubuntu20?

问题描述

I'm trying to install bob.learn.em package from https://gitlab.idiap.ch/bob/bob.learn.em

I also tried to install it in google colab. I get the following error:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

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

  - bob.learn.em

Current channels:

  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

I also tried the command from the conda page,

conda install -c conda-forge/label/broken bob.learn.em

I tried with supported python 3.5, but then I get the following error:

conda activate bob_plda
(bob_plda) root@ti-SYS-1029GQ-TVRT:/sre# conda install -c conda-forge/label/broken bob.learn.em
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial 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 versionsThe following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.27=0
  - feature:|@/linux-64::__glibc==2.27=0

Your installed version is: 2.27

标签: pythonanacondaconda

解决方案


You are missing the channels that contain Bob. i.e. conda config --env --add channels https://www.idiap.ch/software/bob/conda

The Github link mentions you first have to follow these instructions: Bob Install Instructions, before running conda install bob.learn.em which is where you set up all of the channels and dependencies so that you don't get errors like this.


推荐阅读