ImportError:没有名为'skimage'的模块,但我安装了所有依赖项和scikit-image

时间:2017-09-23 14:26:27

标签: python-2.7 python-3.x raspbian scikit-image

screenshot for dependencies and scikit-image

我试图在python3.4中运行一个程序,但它总是给我这个错误信息

from skimage import feature

ImportError:没有名为'skimage'的模块

我在这里和那里搜索互联网寻找答案,尝试了一些解决方案,但我不断收到错误。但后来我尝试在python2.7中运行完全相同的程序,它没有给出任何错误判断,所以我认为它在python2.7中运行良好。无论如何我可以在python3.4中运行这个程序吗?

3 个答案:

答案 0 :(得分:1)

您已将其安装在Python 2库中。您也应该将它安装在Python 3库中:

$ pip3 install scikit-image

答案 1 :(得分:0)

我遇到了同样的问题,我在运行Python 3时安装了scikit-image软件包:

$ ./<filename.py>

我遇到了同样的错误。原来Python 2正在运行。尝试运行:

$ python3 ./<filename.py>

答案 2 :(得分:0)

如果您通过Anaconda安装了python,则可以运行以下命令。它修复了错误。

conda install --yes -c conda-forge scikit-image
相关问题