pip某些包发生SSL错误

Could not fetch URL https://mirrors.aliyun.com/pypi/simple/matplotlib/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘mi
rrors.aliyun.com’, port=443): Max retries exceeded with url: /pypi/simple/matplotlib/ (Caused by SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has
been closed (EOF) (_ssl.c:1131)’))) - skipping
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
ERROR: No matching distribution found for matplotlib
Could not fetch URL https://mirrors.aliyun.com/pypi/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘mirrors.a
liyun.com’, port=443): Max retries exceeded with url: /pypi/simple/pip/ (Caused by SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (E
OF) (_ssl.c:1131)’))) - skipping
解决办法:把挂的VPN关了

你可能感兴趣的:(pip,ssl,网络协议)