【问题标题】:pip install tenserflow in commandpip 在命令中安装 tensorflow
【发布时间】:2019-02-28 18:19:22
【问题描述】:

我检查了他们, 蟒蛇--版本 Python 3.7.1

pip --version 点 18.1

我使用的是 Windows 10。

但是,pip install tenserflow运行命令行,出现如下错误。

pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。

Could not fetch URL https://pypi.org/simple/pip/: 
There was a problem confirming the ssl certificate: 
HTTPSConnectionPool(host='pypi.org', port=443): 
Max retries exceeded with url: /simple/pip/ 
(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

为什么?

【问题讨论】:

  • 你可以尝试升级 pip "python -m pip install --trusted-host pypi.python.org pip --upgrade"
  • 有时可能是因为您的网络(公共 wifi 或公司 VPN)阻止连接到 url。

标签: python tensorflow pip


【解决方案1】:

首先,更新点子

pip install --upgrade pip

然后使用 TensorFlow 安装

pip install tensorflow

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-02-07
    • 1970-01-01
    • 2017-02-23
    • 1970-01-01
    • 1970-01-01
    • 2014-12-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多