【问题标题】:SSL: TLSV1_ALERT_PROTOCOL_VERSION when I install django-constance [duplicate]SSL:安装 django-constance 时的 TLSV1_ALERT_PROTOCOL_VERSION [重复]
【发布时间】:2018-10-24 21:35:00
【问题描述】:

我无法安装 django-constance。

复制步骤

$ pip3 install django-constance
Collecting django-constance
Could not fetch URL https://pypi.python.org/simple/django-constance/: 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 django-constance (from versions: )
No matching distribution found for django-constance

系统配置

Django version:
$ django-admin --version
1.11.1

Python version:
$ python3 --version
Python 3.5.2

$ pip3 --version
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)

【问题讨论】:

    标签: python django pip


    【解决方案1】:

    用途:

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

    将 pip 升级到最新版本,而不是 pip3 install -upgrade pip

    然后重新安装django-constance

    【讨论】:

      猜你喜欢
      • 2018-12-29
      • 2020-04-26
      • 1970-01-01
      • 2015-02-24
      • 2018-07-09
      • 1970-01-01
      • 2020-05-15
      相关资源
      最近更新 更多