2016-03-17 53 views
1

燁我檢查這也太 - Upgrading skimage version on Raspberry pi樹莓派2 - 不能安裝scikit圖像

但在運行後:PIP安裝scikit圖像

Collecting scikit-image Using cached scikit-image-0.12.3.tar.gz 
Complete output from command python setup.py egg_info: 
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests' 
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests' 
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests' 
warning: no files found matching '*.pxd' under directory 'Cython/Utility' 
gcc: internal compiler error: Killed (program cc1) 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. 
Unable to find pgen, not compiling formal grammar. 
Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "/tmp/pip-build-YRFTcZ/scikit-image/setup.py", line 146, in <module> 
    **extra 
    File "/home/pi/miniconda/lib/python2.7/site-packages/numpy/distutils/core.py", 
line 126, in setup 
    dist = setup(**new_attr) 
    File "/home/pi/miniconda/lib/python2.7/site-packages/numpy/distutils/core.py", 
line 169, in setup 
    return old_setup(**new_attr) 
    File "/home/pi/miniconda/lib/python2.7/distutils/core.py", line 111, in setup 
    _setup_distribution = dist = klass(attrs) 
    File "/home/pi/miniconda/lib/python2.7/site-packages/numpy/distutils/numpy_distribution.py", 
line 16, in __init__ 
    Distribution.__init__(self, attrs) 
    File "build/bdist.linux-armv7l/egg/setuptools/dist.py", line 268, in __init__ 
    File "build/bdist.linux-armv7l/egg/setuptools/dist.py", line 313, in fetch_build_eggs 
    File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 836, in resolve 
    File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1081, in best_match 
    File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 1093, in obtain 
    File "build/bdist.linux-armv7l/egg/setuptools/dist.py", line 380, in fetch_build_egg 
    File "build/bdist.linux-armv7l/egg/setuptools/command/easy_install.py", 
line 638, in easy_install 
    File "build/bdist.linux-armv7l/egg/setuptools/command/easy_install.py", 
line 668, in install_item 
    File "build/bdist.linux-armv7l/egg/setuptools/command/easy_install.py", 
line 851, in install_eggs 
    File "build/bdist.linux-armv7l/egg/setuptools/command/easy_install.py", 
line 1079, in build_and_install 
    File "build/bdist.linux-armv7l/egg/setuptools/command/easy_install.py", 
line 1067, in run_setup 
distutils.errors.DistutilsError: Setup script exited with error: command  'gcc' failed with exit status 4 

---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in 
/tmp/pip-build-YRFTcZ/scikit-image/ 

我已經安裝了miniconda並使用我也無法安裝

conda install scikit-image 
+0

由於海灣合作委員會失敗,是否必須我一些缺失的依賴關係。檢查文檔的所有依賴關係 –

+0

謝謝,我認爲事情是matplotlib沒有安裝 – gskishan004

回答

2

解決的辦法是先安裝matplotlib但如果你只是做

PIP安裝matplotlib

你會得到memError,所以使用以下命令: -

$點子 - -no-cache-dir install matplotlib

並在安裝完成後scikit-im使用

$ PIP --no-緩存目錄安裝scikit圖像

注年齡:此步驟可能需要一個小時才能完成

GL與您的項目!

0

我可以在沒有matplotlib的情況下確認這一點,當您嘗試安裝scipy圖像時,您會在樹莓派2上看到令人討厭的消息。作爲我正在從事的工作的一部分,我做到了這一點,這也是有效的。這是我的第一篇文章,我不知道如何格式化它在pip之間分開的一行中發佈的帖子。

pip install numpy 
pip install scipy 
pip --no-cache-dir install matplotlib 
pip -U install scikit-image