Skip to main content
 首页 » 编程设计

python之在 ubuntu 14.04 中安装 Scikit-learn 时出错

2025年05月04日19youxin

尝试使用 pip 安装 scikit-learn 时出现以下错误

错误:

Downloading/unpacking scikit-learn 
 
  Cannot fetch index base URL https://pypi.python.org/simple/ 
  Could not find any downloads that satisfy the requirement scikit-learn 
 
Cleaning up... 
 
No distributions at all found for scikit-learn 
Storing debug log for failure in /home/dmacs/.pip/pip.log 

我什至尝试过将代理设置为:

sudo pip --proxy http://user:pass@localhost:port install scikit-learn 

谁能帮我解决这个问题?

提前致谢

请您参考如下方法:

基于细节:

一个。您正在安装的服务器存在网络问题,代理命令似乎无法解决该问题。基本上它无法从 pip 下载列表。

如果网络正在运行,请尝试以下操作:

sudo pip install -U pip 
sudo pip install -U scikit-learn