美文网首页
anaconda python 切换

anaconda python 切换

作者: Aerio_不要坐井观天 | 来源:发表于2018-08-27 15:15 被阅读0次

    问题:CondaHTTPError: HTTP 000 CONNECTION FAILED for url(HTTPS...)基本上意思就是连不上。

    背景:本机WIN10的anaconda2上装TensorFlow, 所以需要装python3.5以支持TensorFlow。

    方案:利用conda创建虚拟环境

    conda create -n py36 python =3.6 一直出现错误,提示solving environment failed, 继续查验CondaHTTPError: HTTP 000 CONNECTION FAILED for url(HTTPS...)

    解决方法:

    配置.condrac文件(.condrac文件在第一次运行conda命令如conda -V时创建)

    1.proxy_servers: 配置自己的代理

    2.软件源:channels:

    channels:

      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/

      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

      - defaults

    show_channel_urls:True

    allow_other channels: True

    ssl_verify: False

    use_pip: True

    另外,保证终端能够访问外网,例如可以ping一下anaconda.org

    终端配置代理

    set http_proxy=....

    set https_proxy=...

    相关文章

      网友评论

          本文标题:anaconda python 切换

          本文链接:https://www.haomeiwen.com/subject/zxxtwftx.html