gpt4 book ai didi

python - 使用 skimage 导入过滤器时出现问题

转载 作者:行者123 更新时间:2023-12-02 09:15:07 31 4
gpt4 key购买 nike

我在 Python 2.7 中使用 Skimage 包已经有一段时间了。

最近我将 Ubuntu 升级到 14.10,现在无法从 Skimage 包导入滤镜(以前是滤镜)。

Python 2.7.9 (default, Apr  2 2015, 15:33:21) 
[GCC 4.9.2] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> from skimage import filters

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from skimage import filters
File "/usr/local/lib/python2.7/dist-packages/skimage/filters/__init__.py", line 17, in <module>
from .. import restoration
File "/usr/local/lib/python2.7/dist-packages/skimage/restoration/__init__.py", line 21, in <module>
from .deconvolution import wiener, unsupervised_wiener, richardson_lucy
File "/usr/local/lib/python2.7/dist-packages/skimage/restoration/deconvolution.py", line 10, in <module>
from scipy.signal import convolve2d
File "/usr/lib/python2.7/dist-packages/scipy/signal/__init__.py", line 240, in <module>
from .cont2discrete import *
File "/usr/lib/python2.7/dist-packages/scipy/signal/cont2discrete.py", line 12, in <module>
from .ltisys import tf2ss, ss2tf, zpk2ss, ss2zpk
File "/usr/lib/python2.7/dist-packages/scipy/signal/ltisys.py", line 16, in <module>
from .filter_design import tf2zpk, zpk2tf, normalize, freqs
File "/usr/lib/python2.7/dist-packages/scipy/signal/filter_design.py", line 13, in <module>
from scipy import special, optimize
File "/usr/lib/python2.7/dist-packages/scipy/optimize/__init__.py", line 165, in <module>
from ._root import *
File "/usr/lib/python2.7/dist-packages/scipy/optimize/_root.py", line 20, in <module>
from . import nonlin
File "/usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py", line 122, in <module>
import scipy.sparse.linalg
File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/__init__.py", line 109, in <module>
from .isolve import *
File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/__init__.py", line 6, in <module>
from .iterative import *
File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/iterative.py", line 11, in <module>
from scipy.lib.decorator import decorator
ImportError: No module named decorator
>>> import skimage
>>> from skimage import filters

Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from skimage import filters
File "/usr/local/lib/python2.7/dist-packages/skimage/filters/__init__.py", line 13, in <module>
from . import rank
ImportError: cannot import name rank
>>> import rank
>>>

最佳答案

尝试

pip install -U scikit-image

关于python - 使用 skimage 导入过滤器时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33686005/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com