gpt4 book ai didi

python - SSL : TLSV1_ALERT_PROTOCOL_VERSION when I install django-constance

转载 作者:行者123 更新时间:2023-12-01 09:26:31 26 4
gpt4 key购买 nike

我无法安装 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)

最佳答案

用途:

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

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

然后重新安装django-constance

关于python - SSL : TLSV1_ALERT_PROTOCOL_VERSION when I install django-constance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50343626/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com