本文介绍了无法在Python中安装scikit-learn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Mac上的Python中安装scikit-learn,但失败了.有谁知道如何解决这个问题?谢谢!错误消息如下.

Hi I'm trying to install scikit-learn in Python on a mac, but failed. Does anyone having idea how to fix this? Thanks! The error message is as follows.

错误信息

将失败的调试日志存储在/Users/yuxinsun/Library/Logs/pip.log

Storing debug log for failure in /Users/yuxinsun/Library/Logs/pip.log

pip.log就是这样.(对不起,我必须对pip.log中的链接进行一些更改,因为我不能附加2个以上的链接,但我认为这些链接并不那么重要)

/usr/local/bin/pip运行于2014年3月23日02:25:36

/usr/local/bin/pip run on Sun Mar 23 02:25:36 2014

下载/解压缩scikit学习

Downloading/unpacking scikit-learn

获取页面 https://pypi.python.org/simple/scikit-learn/

用于搜索scikit-learn版本的URL:

URLs to search for versions for scikit-learn:

  • 链接-pypi.python.org/simple/scikit-learn/

  • link - pypi.python.org/simple/scikit-learn/

分析页面链接中的链接-pypi.python.org/simple/scikit-learn/

Analyzing links from page link - pypi.python.org/simple/scikit-learn/

跳过链接链接-pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.10.win32-py2.6.exe#md5=eae1e20fc4d7ebc3ec2d1c31cb5eb1a5(来自链接-pypi.python.org/简单/scikit-learn/);未知的存档格式:.exe

Skipping link link - pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.10.win32-py2.6.exe#md5=eae1e20fc4d7ebc3ec2d1c31cb5eb1a5 (from link - pypi.python.org/simple/scikit-learn/); unknown archive format: .exe

跳过链接链接-pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.11.win32-py2.6.exe#md5=d585305053461699b48ffbb176a16ca8(来自链接-pypi.python.org/简单/scikit-learn/);未知的存档格式:.exe

Skipping link link - pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.11.win32-py2.6.exe#md5=d585305053461699b48ffbb176a16ca8 (from link - pypi.python.org/simple/scikit-learn/); unknown archive format: .exe

跳过链接链接-pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.12.1.win32-py2.6.exe#md5=0a352a8087c581d4c75cc2ad4ec043b2(来自链接-pypi.python.org/simple/scikit-learn/);未知的存档格式:.exe

Skipping link link - pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.12.1.win32-py2.6.exe#md5=0a352a8087c581d4c75cc2ad4ec043b2 (from link - pypi.python.org/simple/scikit-learn/); unknown archive format: .exe

跳过链接链接-pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.12.win32-py2.6.exe#md5=3fdb37b8754167fb2ddde035306cf4ae(来自链接-pypi.python.org/简单/scikit-learn/);未知的存档格式:.exe

Skipping link link - pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.12.win32-py2.6.exe#md5=3fdb37b8754167fb2ddde035306cf4ae (from link - pypi.python.org/simple/scikit-learn/); unknown archive format: .exe

跳过链接链接-pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.13.1.win32-py2.6.exe#md5=6fcfd76f705f30c4fabaece0832026fc(来自链接-pypi.python.org/simple/scikit-learn/);未知的存档格式:.exe

Skipping link link - pypi.python.org/packages/2.6/s/scikit-learn/scikit-learn-0.13.1.win32-py2.6.exe#md5=6fcfd76f705f30c4fabaece0832026fc (from link - pypi.python.org/simple/scikit-learn/); unknown archive format: .exe

@
〜/Library/Logs/pip.log" 1413L,93793C

@
"~/Library/Logs/pip.log" 1413L, 93793C

推荐答案

我将pip从7.1.2升级到8.1,并解决了该问题

I upgrade pip from 7.1.2 to 8.1 and it fixed the issue

这篇关于无法在Python中安装scikit-learn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 18:53