Pip若干问题汇总

1.pip install时发生SSLError

以langdetect包为例,错误详情信息为:

Looking in indexes: https://pypi.doubanio.com/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_
NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/langdetect/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_
NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/langdetect/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_
NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/langdetect/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_
NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/langdetect/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_
NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/langdetect/
Could not fetch URL https://pypi.doubanio.com/simple/langdetect/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.douban
(_ssl.c:1091)'))) - skipping
ERROR: Could not find a version that satisfies the requirement langdetect (from versions: none)
ERROR: No matching distribution found for langdetect

该错误是因为开了代理服务器,将代理服务器关闭,再安装就好了。

你可能感兴趣的:(pip)