从本地来源安装anaconda库 [英] Install anaconda library from a local source

查看:473
本文介绍了从本地来源安装anaconda库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,我一直在尝试在Windows PC上的非常复杂的代理后面安装pymc;有效地将其安装在未连接到互联网的计算机上.我曾尝试-未成功-在condarc文件中设置代理,但仍然收到错误消息

I have been trying to install pymc for some time on a Windows PC behind a very complicated proxy; effectively making this an installation on a computer not connected to the internet. I have tried - unsuccessfully - to set a proxy in the condarc file but I still get error messages

conda install -c https://conda.binstar.org/pymc pymc 正在获取软件包元数据:SSL验证错误:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:645)

conda install -c https://conda.binstar.org/pymc pymc Fetching package metadata: SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)

推荐答案

要解决此问题,您需要下载安装程序试图获取的tar文件(即使使用Windows),然后使用脱机模式:

To solve this, you need to download the tar file (even if using Windows) that the installer is trying to fetch and then use offline mode:

使用此命令将出错,以确定要下载的文件:

Use this command which will error, to determine the file to be downloaded:

>conda install -c https://conda.binstar.org/pymc pymc
Fetching package metadata: SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)
....
Solving package specifications: ......................

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    pymc-2.3.5                 |      np110py35_0         402 KB  defaults

The following NEW packages will be INSTALLED:

    pymc: 2.3.5-np110py35_0 defaults

Proceed ([y]/n)? y

Fetching packages ...
Could not connect to https://repo.continuum.io/pkgs/free/win-64/pymc-2.3.5-np110py35_0.tar.bz2
... [error message continues]...

现在下载错误消息中提到的tar文件:

Now download the tar file mentioned in the error message:

https://repo. continentum.io/pkgs/free/win-64/pymc-2.3.5-np110py35_0.tar.bz2

然后使用tar文件的路径运行以下命令:

And then run this command with the path to the tar file:

>conda install --offline C:\pymc-2.3.5-np110py35_0.tar.bz2

这篇关于从本地来源安装anaconda库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆