安装scikit-image时出现问题,可能是由于blosc [英] Problem installing scikit-image probably due to blosc

查看:136
本文介绍了安装scikit-image时出现问题,可能是由于blosc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在ubuntu 18.04的虚拟环境中安装scikit映像.

Hi I am trying to install scikit image in a virtual environment on ubuntu 18.04.

尝试安装图像编解码器时失败,我尝试单独安装图像编解码器,但由于blosc而导致相同的错误.我分别安装了blosc,但是仍然无法成功.

It fails when it tries to install imagecodecs, I tried to install imagecodecs separately but it gives the same error which is something due to blosc. I installed blosc separately but somehow this still fails.

    /usr/include/python3.6m/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it by " \
      ^~~~~~~
    imagecodecs/_blosc.c:602:10: fatal error: blosc.h: No such file or directory
     #include "blosc.h"
              ^~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/xxxx/im_an/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ijwkwo7f/imagecodecs/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4xtori6c-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/xxxx/im_an/include/site/python3.6/imagecodecs" failed with error code 1 in /tmp/pip-build-ijwkwo7f/imagecodecs/

我希望有人可以帮助我.谢谢

I hope that somebody could help me with this. Thank you

推荐答案

不幸的是,图像编解码器转盘(预编译的二进制文件)仅与pip 19.0及更高版本兼容,因为它们使用更新的

Unfortunately imagecodecs wheels (pre-compiled binaries) are compatible only with pip 19.0 and newer, because they use the newer manylinux2010 standard. Upgrade pip (pip install -U pip) and try again, and things should work!

请参阅以下问题以供参考:

See these issues for reference:

https://github.com/scikit-image/scikit-image /issues/4673

https://github.com/scikit-image/scikit-image /issues/4674

这篇关于安装scikit-image时出现问题,可能是由于blosc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆