首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何在安装包时修复pip错误?

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

Stack Overflow用户
提问于 2019-04-09 21:07:20
回答 2查看 791关注 0票数 0

我想在pip上安装一个包,但是发生了这个错误:

代码语言:javascript
复制
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上。

如果您能指引我,我将不胜感激。

致以最好的问候,米娜

EN

Stack Overflow用户

回答已采纳

发布于 2019-04-09 21:14:12

你可以从sklearn git下载sklearn包的源码。下载适当的版本。

下载后,运行python setup.py install安装程序包

票数 1
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55593679

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档