gpt4 book ai didi

django - 为 python3 安装 django 时出现 SSL 错误

转载 作者:行者123 更新时间:2023-12-04 22:43:39 25 4
gpt4 key购买 nike

$ pip3 install django

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after

connection broken by 'SSLError(SSLError(185090184, '[X509] no certificate or crl found (_ssl.c:3732)'),)': /simple/django/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(185090184, '[X509] no certificate or crl found (_ssl.c:3732)'),)': /simple/django/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(185090184, '[X509] no certificate or crl found (_ssl.c:3732)'),)': /simple/django/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(185090184, '[X509] no certificate or crl found (_ssl.c:3732)'),)': /simple/django/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(185090184, '[X509] no certificate or crl found (_ssl.c:3732)'),)': /simple/django/
Could not find a version that satisfies the requirement django (from versions: )
No matching distribution found for django

我尝试了各种解决方案。我安装了python3.7,然后尝试了但是一样。
我也试过这个,但结果也是一样的。
$ sudo apt-get install python3-setuptools ca-certificates

当我在 venv 中安装 django 时也会发生同样的事情。安装特定版本的 django 也是如此。

最佳答案

我正在使用 Ubuntu,但是,我解决了这个问题,只是运行更新,然后修复 dpkg configure -a,似乎安装了所有证书,然后升级。

关于django - 为 python3 安装 django 时出现 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59979913/

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