首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在anaconda中安装dlib

无法在anaconda中安装dlib
EN

Stack Overflow用户
提问于 2018-10-02 06:22:22
回答 1查看 1.2K关注 0票数 0

我试图在Anaconda中安装dlib,以便在jupyter-笔记本中使用它。

我尝试使用conda install -c menpo dlib,然后dlib没有安装,而是这样说:

代码语言:javascript
复制
Downloading and Extracting Packages
py-boost-1.67.0      | 318 KB    | ################################################################# | 100% 
widgetsnbextension-1 | 1.1 MB    |                                                                   |   0% 
ipywidgets-5.1.5     | 61 KB     |                                                                   |   0% 
boost-1.59.0         | 11.9 MB   |                                                                   |   0% 
dlib-19.9            | 2.3 MB    |                                                                   |   0% 

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/menpo/osx-64/widgetsnbextension-1.2.3-py35_1.tar.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/menpo/osx-64/ipywidgets-5.1.5-py35_0.tar.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/menpo/osx-64/boost-1.59.0-py35_0.tar.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/menpo/osx-64/dlib-19.9-py35_0.tar.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

然后,我从这里下载了这里,并将其保存在/anaconda3/lib/python3.6/site-packages中,然后运行conda install -c conda-forge dlib-19.16.0.tar.gz,但它显示:

代码语言:javascript
复制
PackagesNotFoundError: The following packages are not available from current channels:

  - dlib-19.16.0.tar.gz

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/osx-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/pro/osx-64
  - https://repo.anaconda.com/pkgs/pro/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.
EN

回答 1

Stack Overflow用户

发布于 2018-10-03 02:01:32

第一个错误仅仅是说您无法连接到menpo库库。我建议检查您的代理/互联网连接。

在第二种情况下,您试图安装一个tar.gz文件,这是一个压缩文件。首先解压缩它(解压缩),然后尝试安装它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52602978

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档