使用 python=3.6 build 在 anaconda 上安装 dlib 失败
Installing dlib on anaconda with python=3.6 build failed
我从 https://pypi.org/simple/dlib/ website. I tried to install using 这些方法下载了 dlib-19.19.0.tar.gz 文件。但是 none 它对我有用。
这是我的水蟒信息:
(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
我只用了一种安装方法。我解压缩了 tar.gz 文件并从那个文件夹中安装了 运行 python setup.py 并且在安装时显示了这个错误:
As you can what's the error
This is that extension and show some cmake errors
我的 cmake 安装在 anaconda 中:
cmake 3.14.0 h33f27b4_0 蟒蛇
谢谢你:dlib installation on Windows 10
我一开始没有找到它,否则我不会 post 这个问题。无论如何,谢谢 Marco D.G 的重播,它帮助我解决了第一个 运行 的问题。希望你们也能通过这个答案得到解决。我只是 运行: pip install https://pypi.python.org/packages/da/06/bd3e241c4eb0a662914b3b4875fc52dd176a9db0d4a2c915ac2ad8800e9e/dlib-19.7.0-cp36-cp36m-win_amd64.whl#md5=b7330a5b2d46420343fbed5df69e6a3f
这在我的 conda 中。
如果未安装 cmake,请先使用以下命令安装它
conda install -c anaconda cmake
其他
只需安装 dlib:
conda install -c conda-forge dlib
现在检查是否安装
>>import dlib
>>dlib.__version__
如果没有报错则dlib安装成功
否则请重试,因为第一次安装可能会出现问题。
我从 https://pypi.org/simple/dlib/ website. I tried to install using
(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
我只用了一种安装方法。我解压缩了 tar.gz 文件并从那个文件夹中安装了 运行 python setup.py 并且在安装时显示了这个错误:
As you can what's the error
This is that extension and show some cmake errors
我的 cmake 安装在 anaconda 中: cmake 3.14.0 h33f27b4_0 蟒蛇
谢谢你:dlib installation on Windows 10 我一开始没有找到它,否则我不会 post 这个问题。无论如何,谢谢 Marco D.G 的重播,它帮助我解决了第一个 运行 的问题。希望你们也能通过这个答案得到解决。我只是 运行: pip install https://pypi.python.org/packages/da/06/bd3e241c4eb0a662914b3b4875fc52dd176a9db0d4a2c915ac2ad8800e9e/dlib-19.7.0-cp36-cp36m-win_amd64.whl#md5=b7330a5b2d46420343fbed5df69e6a3f 这在我的 conda 中。
如果未安装 cmake,请先使用以下命令安装它
conda install -c anaconda cmake
其他
只需安装 dlib:
conda install -c conda-forge dlib
现在检查是否安装
>>import dlib
>>dlib.__version__
如果没有报错则dlib安装成功
否则请重试,因为第一次安装可能会出现问题。