2016-04-09 7 views
1

skimage.measure.labelを使用するスクリプトがあります。私の古いラップトップ(Debian 7、Python 2)では、これらのスクリプトは完全に機能していました。 Scikit-image:名前 'label'をインポートできません

File "image_converter.py", line 8, in <module> 
    from skimage.measure import label 
ImportError: cannot import name 'label' 

他の輸入のすべて

が正常に動作している:

from skimage import data 
from skimage.filter import threshold_otsu 
from skimage.segmentation import clear_border 
from skimage.morphology import closing, square 
from skimage.measure import regionprops 
from skimage.color import label2rgb 
import skimage.io as ski_io 

pip3 list氏は述べています、私は新しいノートパソコンを得たときに最近、私は今、これらのスクリプトはskimage.measure.labelをインポートすることはできませんDebianの8とPython 3へ移動しました:

(...) 
scikit-image (0.9.3) 
(...) 

Pythonバージョンは3.4.3です。

何が起こったのですか? scikit-image(再)移動しましたmeasure.label公式ドキュメント

それはまだ記載されて:skimage.measure.label

答えて

1

は、リリース0.9のためのモジュールmeasureには機能labelは(http://scikit-image.org/docs/0.9.x/api/skimage.measure.htmlを参照)実際にはありません。

基本的には、skimageのバージョンを更新する必要があります。最新のバージョンは0.12.3です。 Python 3.4は正式にテストされているため、互換性に関する問題は期待できません。

関連する問題