【问题标题】:How to downgrade python 3.7 to 3.6 in Anaconda for use with tensorflow?如何在 Anaconda 中将 python 3.7 降级到 3.6 以与 tensorflow 一起使用?
【发布时间】:2020-02-12 21:30:35
【问题描述】:

我认为 python 3.7 仍然存在 tensorflow 问题,甚至是 tensorflow2。

所以我将 python 3.7 降级到 3.6。我正在使用 conda install python=3.6。它失败了,请参阅下面的错误消息。是因为公司的防火墙政策吗?基本上,我不能使用任何 conda 命令。使用 pip 很好。有什么建议吗?谢谢。

(base) C:\Users>conda install python=3.6
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'tls_process_server_certificate\', \'certificate verify failed\')])")))'))

【问题讨论】:

    标签: conda


    【解决方案1】:

    这是一个连接问题,并非特定于尝试降级 pyhton 版本

    是不是因为公司的防火墙政策

    您可能需要配置代理或类似功能

    please file a support request with your network engineering team

    错误说明了一切。由于这是您公司的网络问题,您应该与您的 IT 部门讨论如何正确配置

    【讨论】:

    • 感谢飞天柜员。我通过运行 conda config --set ssl_verify false 解决了这个 HTTP 错误
    猜你喜欢
    • 1970-01-01
    • 2019-03-06
    • 2019-06-19
    • 2017-10-13
    • 1970-01-01
    • 2019-05-27
    • 1970-01-01
    • 2019-07-27
    • 2021-03-07
    相关资源
    最近更新 更多