【问题标题】:pip3 on MacOS: SSL error while installing virtualenvMacOS 上的 pip3:安装 virtualenv 时出现 SSL 错误
【发布时间】:2019-04-14 13:08:12
【问题描述】:

当我运行这个命令时:

pip3 install virtualenv

它返回这个:

Collecting virtualenv
  Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv

我该如何解决? 谢谢你的帮助

【问题讨论】:

标签: python-3.x macos ssl pip virtualenv


【解决方案1】:

这解决了我的问题:

curl https://bootstrap.pypa.io/get-pip.py | sudo python3

pip3 install virtualenv

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-27
    • 1970-01-01
    • 1970-01-01
    • 2016-05-13
    • 1970-01-01
    • 2018-05-17
    相关资源
    最近更新 更多