Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing dlib on anaconda with python=3.6 build failed

I downloaded dlib-19.19.0.tar.gz file from https://pypi.org/simple/dlib/ website. I tried to install using How to install Python packages from the tar.gz file without using pip install these methods. But none of it worked for me. This is my anaconda info:

(base) C:\Users\Krishna Rohith>conda info

 active environment : base
active env location : C:\Users\Krishna Rohith\Anaconda3
        shell level : 1
   user config file : C:\Users\Krishna Rohith\.condarc
populated config files : C:\Users\Krishna Rohith\.condarc
      conda version : 4.8.0
conda-build version : 3.18.11
     python version : 3.6.9.final.0
   virtual packages : __cuda=10.1
   base environment : C:\Users\Krishna Rohith\Anaconda3  (writable)
       channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                      https://repo.anaconda.com/pkgs/main/noarch
                      https://repo.anaconda.com/pkgs/r/win-64
                      https://repo.anaconda.com/pkgs/r/noarch
                      https://repo.anaconda.com/pkgs/msys2/win-64
                      https://repo.anaconda.com/pkgs/msys2/noarch
      package cache : C:\Users\Krishna Rohith\Anaconda3\pkgs
                      C:\Users\Krishna Rohith\.conda\pkgs
                      C:\Users\Krishna Rohith\AppData\Local\conda\conda\pkgs
   envs directories : C:\Users\Krishna Rohith\Anaconda3\envs
                      C:\Users\Krishna Rohith\.conda\envs
                      C:\Users\Krishna Rohith\AppData\Local\conda\conda\envs
           platform : win-64
         user-agent : conda/4.8.0 requests/2.22.0 CPython/3.6.9 Windows/10 Windows/10.0.18362
      administrator : False
         netrc file : None
       offline mode : False

I used only one method of installing. I unpacked tar.gz file and from that folder i run python setup.py install and it shows this error while installing:

As you can what's the error

This is that extension and show some cmake errors

And my cmake installed in anaconda: cmake 3.14.0 h33f27b4_0 anaconda

like image 773
Krishna Rohith Avatar asked Oct 28 '25 05:10

Krishna Rohith


1 Answers

If cmake is not installed then first install it using following command

conda install -c anaconda cmake

else

Just install dlib:

conda install -c conda-forge dlib  

Now, check whether it is installed or not

>>import dlib
>>dlib.__version__

If no errors then you installed dlib successfully

else please try again cause there may be issue for first time installation.

like image 119
Yashit Sahni Avatar answered Oct 30 '25 14:10

Yashit Sahni