我想在pip上安装一个包,但是发生了这个错误:
C:\Users\Mina>pip install sklearn
Collecting sklearn
Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)",)': /simple/sklearn/
Retrying (Retry(total=3, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)",)': /simple/sklearn/
Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)",)': /simple/sklearn/
Retrying (Retry(total=1, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)",)': /simple/sklearn/
Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read
timed out. (read timeout=15)",)': /simple/sklearn/
Could not find a version that satisfies the requirement sklearn (from
versions: )
No matching distribution found for sklearn
在安装任何软件包时出现此错误。
注意:我不想安装在conda上。
如果您能指引我,我将不胜感激。
致以最好的问候,米娜
发布于 2019-04-09 21:14:12
你可以从sklearn git下载sklearn包的源码。下载适当的版本。
下载后,运行python setup.py install
安装程序包
https://stackoverflow.com/questions/55593679
复制相似问题