'Install Dlib in Anaconda Python

I'm trying to install the dlib package in Anaconda by running the following:

conda install -c menpo dlib

I'm getting the following error:

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

How can I solve this problem?



Solution 1:[1]

Installers Info: This package contains files in non-standard labels.

  • linux-64 v19.22.0
  • win-32 v19.9
  • osx-64 v19.22.0
  • win-64 v19.22.0

To install this package with conda run one of the following:

conda install -c conda-forge dlib
conda install -c conda-forge/label/cf201901 dlib
conda install -c conda-forge/label/cf202003 dlib

Solution 2:[2]

You should go to the Python Index Page to download the specific whl for your python, then put it into site-packages folder.

cd into this folder and use the command pip install XXX.whl

Attention you should notice:

1 make sure boost,boost-python,opencv-python have already been installed.

2 use the command print(pip.pep425tags.get_supported()) to learn which specific wheel your python support.

3 The dlib version should match your python version.

Solution 3:[3]

Use below command in your script for the first time.

import subprocess
subprocess.check_call(["python", '-m', 'pip', 'install', 'dlib']) # install pkg

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RITIK KUMAR
Solution 2
Solution 3 user1775015