使用conda安装任何软件包时出现HTTP错误 [英] HTTP error while using conda for installation of any packages

查看:203
本文介绍了使用conda安装任何软件包时出现HTTP错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


CondaHTTPError:URL

的HTTP 000连接失败onda-forge / linux-64 / repodata.json>已消失:-

CondaHTTPError: HTTP 000 CONNECTION FAILED for url onda-forge/linux-64/repodata.json> Elapsed: -

尝试检索此URL时发生HTTP错误。 HTTP错误
通常是间歇性的,只需重试即可。

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.

SSLError(MaxRetryError('HTTPSConnectionPool(host = \'conda。 anaconda.org\',
port = 44 3):
URL超过最大重试次数:/conda-forge/linux-64/repodata.json
(由
引起) SSLError(SSLError(不好的握手:错误([(\'SSL例程\',
\'SSL23_GET_SERVER

_HELLO\',\'未知协议\') ],),),))',),)

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'conda.anaconda.org\', port=44 3): Max retries exceeded with url: /conda-forge/linux-64/repodata.json (Caused b y SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'SSL23_GET_SERVER
_HELLO\', \'unknown protocol\')],)",),))',),)

(tensorflow)harshvardhan @ ravan:〜/ project $ conda info当前conda
安装:

(tensorflow) harshvardhan@ravan:~/project$ conda info Current conda install:



           platform : linux-64
      conda version : 4.3.30
   conda is private : False
  conda-env version : 4.3.30
conda-build version : 3.0.27
     python version : 2.7.14.final.0
   requests version : 2.18.4
   root environment : /ug/dd/harshvardhan/anaconda2  (writable)
default environment : /ug/dd/harshvardhan/anaconda2/envs/tensorflow
   envs directories : /ug/dd/harshvardhan/anaconda2/envs
                      /ug/dd/harshvardhan/.conda/envs
      package cache : /ug/dd/harshvardhan/anaconda2/pkgs
                      /ug/dd/harshvardhan/.conda/pkgs
       channel URLs : https://repo.continuum.io/pkgs/main/linux-64
                      https://repo.continuum.io/pkgs/main/noarch
                      https://repo.continuum.io/pkgs/free/linux-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/linux-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/linux-64
                      https://repo.continuum.io/pkgs/pro/noarch
        config file : /ug/dd/harshvardhan/.condarc
         netrc file : None
       offline mode : False
         user-agent : conda/4.3.30 requests/2.18.4 CPython/2.7.14 Linux/3.2.0-4-amd64 debian/7.11 glibc/2.13
            UID:GID : 85090:2114

您能告诉我下一步该怎么做吗?
我浏览了其他链接并设置了ssl_verify:False对我不起作用

Can you tell me what should I do next? I surfed other links and setting ssl_verify: False didn't work for me

推荐答案

我遇到了同样的问题,并且对此很有信心,这是由于内部存在SSL /防火墙问题引起的。

I am experiencing the same issue, and am quite confident it is due to SSL/Firewall issues internally in the workplace.

您是否需要在.condarc文件中指定代理服务器? (.eg)

Do you have proxy servers that you need to specify in your .condarc file? (.e.g)

proxy_servers:
    http : http://101.101.101.255:8080
    https : https://101.101.101.255:8080

我知道它说的是WinXP,但这仍然适用-< a href = https://conda.io/docs/user-guide/configuration/use-winxp-with-proxy.html rel = nofollow noreferrer> https://conda.io/docs/user-guide /configuration/use-winxp-with-proxy.html

I know it says WinXP but this still applies - https://conda.io/docs/user-guide/configuration/use-winxp-with-proxy.html

如果您正确指定组织的服务器,但仍然遇到这些问题,则可能是可能是需要解决的防火墙例外/ SSL证书配置问题,它本身并不是一个conda问题,而是一个网络问题

If you are specifying your organisation's servers correctly, and are still having these issues, then there is likely a firewall exception / SSL cert configuration issue that needs to be resolved, and is not a conda issue per se, but a networking problem

这篇关于使用conda安装任何软件包时出现HTTP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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