参考地址:

Image Processing Using Python

https://code.tutsplus.com/tutorials/image-processing-using-python--cms-25772

scikit-image

http://scikit-image.org/download.html

pip install  scikit-image

出现报错

Failed building wheel for subprocess32

采用

python -m easy_install scikit-image

依然报错

换种方式

download whl文件

pip install the .whl file

在python package中

https://pypi.python.org/pypi/scikit-image

下载了scikit_image-0.13.0-cp27-cp27m-manylinux1_x86_64.whl (md5)

wget https://pypi.python.org/packages/7d/72/62b7f3a3120d8d3e9d9b95031b4096e310ea35b3b56c3d0640633e32dd48/scikit_image-0.13.0-cp27-cp27m-manylinux1_x86_64.whl#md5=7eb1d73e02f9b709bb21a6241ad3743a

pip install scikit_image-0.13.0-cp27-cp27m-manylinux1_x86_64.whl

报错

scikit_image-0.13.0-cp27-cp27m-manylinux1_x86_64.whl is not a supported wheel on this platform.

进入python中

>>> import pip
>>> pip.pep425tags.get_supported()
[('cp27', 'cp27mu', 'manylinux1_x86_64'), ('cp27', 'cp27mu', 'linux_x86_64'), ('cp27', 'none', 'manylinux1_x86_64'), ('cp27', 'none', 'linux_x86_64'), ('py2', 'none', 'manylinux1_x86_64'), ('py2', 'none', 'linux_x86_64'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('py27', 'none', 'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any'), ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('py21', 'none', 'any'), ('py20', 'none', 'any')]
>>>

不支持cp27m支持cp27mu

所以重新下载

cp27mu版本

scikit_image-0.13.0-cp27-cp27mu-manylinux1_x86_64.whl (md5)

pip install scikit_image-0.13.0-cp27-cp27mu-manylinux1_x86_64.whl

依然报错

Failed building wheel for subprocess32

于是采用源码安装

scikit-image-0.13.0.tar.gz (md5)

https://pypi.python.org/packages/f0/a2/918366ba9095ed4c07646be903c795f375d978ee418136eecb0571559719/scikit-image-0.13.0.tar.gz#md5=c92b682ed77b568218423b7afe454996

.tar.gz解压命令

1) tar调用gzip 
  gzip是GNU组织开发的一个压缩程序,.gz结尾的文件就是gzip压缩的结果。与gzip 
相对的解压程序是gunzip。tar中使用-z这个参数来调用gzip。下面来举例说明一下 
: 
  # tar -czf all.tar.gz *.jpg 
  这条命令是将所有.jpg的文件打成一个tar包,并且将其用gzip压缩,生成一个 
gzip压缩过的包,包名为all.tar.gz 
  # tar -xzf all.tar.gz 
  这条命令是将上面产生的包解开。

python setup.py build_ext -i

报错

gcc: skimage/_shared/geometry.c
/bin/bash: gcc: command not found
/bin/bash: gcc: command not found

yum install gcc

Package gcc-4.8.5-4.el7.x86_64 already installed and latest version
Nothing to do

You can use pip to automatically install the runtime dependencies as follows:

pip install -r requirements.txt

还是报错

unable to execute gcc: No such file or directory
error: command 'gcc' failed with exit status 1

确定还是gcc的问题了

which   gcc

/usr/bin/which: no gcc in (/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/tsso_openssh/bin:/root/bin)

whereis   gcc

gcc: /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz

解决了gcc的问题,执行依然报错

最有解决方案

yum -y install gcc gcc-c++ kernel-devel

yum -y install python-devel libxslt-devel libffi-devel openssl-devel

解决

查看系统信息等常用命令参考

http://liguxk.blog.51cto.com/129038/152912

安装scikit-image问题的更多相关文章

  1. python 安装scikit!!!

    首先,吐槽一下,真的是折腾好几天,一会更新这个,一会更新那个,总是各种奇葩问题诸如此类: cannot import check-build pip有新版本,需要更新(黄字) 其中scipy出错最多, ...

  2. [python] 安装numpy+scipy+matlotlib+scikit-learn及问题解决

    这篇文章主要讲述Python如何安装Numpy.Scipy.Matlotlib.Scikit-learn等库的过程及遇到的问题解决方法.最近安装这个真是一把泪啊,各种不兼容问题和报错,希望文章对你有所 ...

  3. python scikit-learn 安装中的各种事宜

    由于兴趣,想安装scikit,但是安装时提示pip版本低,让更新,但是他给的更新命令用了之后并不能更新成功(我是指我的) 网上的各种命令都试过了,弄了大半天还是不行,后来我把SCIKIT换成(whl- ...

  4. 机器学习 1 linear regression 作业(二)

    这个线性回归的作业需要上传到https://inclass.kaggle.com/c/ml2016-pm2-5-prediction 上面,这是一个kaggle比赛的网站.第一次接触听说这个东西,恰好 ...

  5. 人工智能深度学习框架MXNet实战:深度神经网络的交通标志识别训练

    人工智能深度学习框架MXNet实战:深度神经网络的交通标志识别训练 MXNet 是一个轻量级.可移植.灵活的分布式深度学习框架,2017 年 1 月 23 日,该项目进入 Apache 基金会,成为 ...

  6. windows下安装python科学计算环境,numpy scipy scikit ,matplotlib等

    安装matplotlib: pip install matplotlib 背景: 目的:要用Python下的DBSCAN聚类算法. scikit-learn 是一个基于SciPy和Numpy的开源机器 ...

  7. Python第三方库(模块)"scikit learn"以及其他库的安装

    scikit-learn是一个用于机器学习的 Python 模块. 其主页:http://scikit-learn.org/stable/. GitHub地址: https://github.com/ ...

  8. Scikit Learn安装教程

    Windows下安装scikit-learn 准备工作 Python (>= 2.6 or >= 3.3), Numpy (>= 1.6.1) Scipy (>= 0.9), ...

  9. Python之扩展包安装

    读者朋友,在比较新的版本(Python 2 >=2.7.9 or Python 3 >=3.4)中,pip或者easy_install 扩展包命令已经默认安装(可查看   你的安装目录\p ...

  10. pip/matplot/pandas的安装和使用

    pip可以很方便的安装python的各种工具库,如pandas,matplotlib,scikit等,最大优点是它会自动解决库之间的依赖性,把所有需要的库都安装好,比起手工一个一个安装方便多了. 1. ...

随机推荐

  1. CUDA Samples: green ball

    以下CUDA sample是分别用C++和CUDA实现的生成的绿色的球图像,并对其中使用到的CUDA函数进行了解说,code参考了<GPU高性能编程CUDA实战>一书的第五章,各个文件内容 ...

  2. JDK1.7之 HashMap 源码分析

    转载请注明出处:http://blog.csdn.net/crazy1235/article/details/75451812 类继承关系 构造函数 Entry put put putForNullK ...

  3. [置顶] 【机器学习PAI实践八】用机器学习算法评估学生考试成绩

    (本文数据为实验用例) 一.背景 母亲是老师反而会对孩子的学习成绩造成不利影响?能上网的家庭,孩子通常能取得较好的成绩?影响孩子成绩的最大因素居然是母亲的学历?本文通过机器挖掘算法和中学真实的学生数据 ...

  4. JMter请求参数中文显示乱码

    如上图所示,上传的参数为中文的时候,显示不出来,解决方法如下: 1.进入Jmter安装文件bin文件夹,找到文件jmeter.properties 2.在该文件找到jsyntaxtextarea.fo ...

  5. OPEN(SAP) UI5 学习入门系列之三:MVC (上) - 模型

    这次我们来一起学习MVC,这个专题分为两个小节,本次主要是总览以及模型,下一次着重会介绍视图以及控制器,因为控制器其实没有太多可以讲的,所以和视图合并在一块. 1 Model View Control ...

  6. ios6:新特征介绍

    下面我们分别来看看这些特征的一些介绍: 1.地图     iOS6抛弃了一直用的google map,而使用了自家的地图服务.相应地,MapKit框架也自然变成和Apple自家的地图服务绑定了.随之而 ...

  7. Infinite size of Hypothesis set and growth function

    We want: 根据Hoeffding: 但是M是无穷大的,是否可以找到一个有穷大的m_H去替代无穷大的M? 思考:M从何而来。 Hset里有M个h,对于每个Data,只要存在一个h会造成Bad,即 ...

  8. ssm框架实现图片上传显示并保存地址到数据库

    本案例是通过springmvc+spring+mybatis框架以商品上传为例,实现的图片上传功能,并把图片的地址保存到数据库并在前台显示上传的图片. 本项目是使用maven搭建的项目,首先看下项目结 ...

  9. Unicode字符转换成字符串

    /*** * Unicode字符转换成字符串 * @param str * Unicode字符 * @return * String * * @author WXW */ public static ...

  10. MySQL中大数字加减,不产生千位符和科学计数

    mysql数字加减科学计数法 这两天因为需求,需要获取一张表的流水号.规则是这样的.当前日期+8位流水号.比如:2015062400000001,2015062400000002,2015062400 ...