安装包时如何修复pip错误?

问题描述 投票:0回答:2

我想在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上安装。

如果你指导我,我将非常感激。

最诚挚的问候,米娜

python pip install
2个回答
1
投票

您可以从qazxsw poi下载sklearn软件包的源代码。下载适当的版本。

下载后运行sklearn git来安装软件包


3
投票

如果你在pypi中检查python setup.py install,它会告诉你改用sklearn

试试:scikit-learn

© www.soinside.com 2019 - 2024. All rights reserved.