python-3.x - 无法在 anaconda 中安装 dlib
问题描述
我正在尝试安装dlib
在 Anaconda 中以便在 jupyter-notebook 中使用它。
我尝试使用conda install -c menpo dlib
,然后 dlib 没有安装,而是说:
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.
然后,我dlib-19.16.0.tar.gz
从这里下载并保存它 /anaconda3/lib/python3.6/site-packages
然后运行conda install -c conda-forge dlib-19.16.0.tar.gz
,但它显示:
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.
解决方案
第一个错误只是说您无法连接到 menpo 库存储库。我建议检查您的代理/互联网连接。
在第二种情况下,您尝试安装 tar.gz 文件,这是一个压缩文件。先解压(解压),然后尝试安装。
推荐阅读
- typescript - 一个旧的离子项目给了我这个错误,它阻止了应用程序的构建
- javascript - 如何将 php/html 中的程序名称作为变量传递给 javascript,而不是在“$.get”语句中对其进行硬编码
- python - 如何在 Python 脚本调用的脚本仍继续运行时退出 Python 脚本
- python - Numpy AKS 素数函数
- python - Pandas 数据框 - 仅在重复列值时添加后缀
- javascript - 您将如何在 React.Component 类中使用条件挂钩
- ssl - 在 windows server 2016 上安装 SSL 证书
- docker - 如何在 Docker 中使用 Grafana 的自定义 ini 文件?
- c++ - Visual Studio Code 不能 #include 来自其他路径的库
- ios - First Responder 和 hitTest 方法之间有什么关系?