不久前,我从https://pip.pypa.io/en/stable/installing/下载了 pip ,然后才意识到我的 python 版本已经附带了 pip。我成功地使用它来下载 pygame,但现在我正在尝试下载 numpy,无论我尝试什么,它都会返回以下错误。
我尝试重新安装 pip 和 python 但没有任何改变。我认为这与我不小心从上面的链接下载 pip 并拥有两个版本的 pip 有关。当我卸载 pip 时,它不是被卸载的那个,如果有的话。无论如何,这只是我的理论。
这就是当我尝试安装任何东西时发生的情况
C:\Users\riley>pip install numpy
Collecting numpy
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/numpy/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/numpy/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, …Run Code Online (Sandbox Code Playgroud) 我有一个二维列表。
[[3, 3, 5],
[3, 2, 8],
[2, 1, 3]]
Run Code Online (Sandbox Code Playgroud)
我想计算 3 作为此列表中每个列表的第一个值出现的次数,最好不要迭代。