Python 为什么可以';我是否导入使用easy_install安装的软件包?

Python 为什么可以';我是否导入使用easy_install安装的软件包?,python,Python,我试图安装SimpleCV软件包: C:\>easy_install C:\Python27\lib\site-packages\simplecv-1.2-py2.7.egg Processing simplecv-1.2-py2.7.egg simplecv 1.2 is already the active version in easy-install.pth Installed c:\python27\lib\site-packages\simplecv-1.2-py2.7.eg

我试图安装
SimpleCV
软件包:

C:\>easy_install C:\Python27\lib\site-packages\simplecv-1.2-py2.7.egg
Processing simplecv-1.2-py2.7.egg
simplecv 1.2 is already the active version in easy-install.pth

Installed c:\python27\lib\site-packages\simplecv-1.2-py2.7.egg
Processing dependencies for simplecv==1.2
Finished processing dependencies for simplecv==1.2
但当我尝试导入它时,它不起作用:

import simplecv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named simplecv
>>> from SimpleCV import Shell
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build\bdist.win32\egg\SimpleCV\__init__.py", line 3, in <module>
    # $Id$
  File "build\bdist.win32\egg\SimpleCV\base.py", line 29, in <module>
ImportError: No module named cv
导入simplecv
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
ImportError:没有名为simplecv的模块
>>>从SimpleCV导入Shell
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“build\bdist.win32\egg\SimpleCV\\uuuu init\uuuu.py”,第3行,在
#$Id$
文件“build\bdist.win32\egg\SimpleCV\base.py”,第29行,在
导入错误:没有名为cv的模块
为什么我不能导入它?

您应该安装。OpenCV可能需要安装一些其他库,即

我不知道是否有一些针对Windows的自动化程序,在我的Ubuntu中,我只发出了两个命令(除了simplecv的easy_安装):

在那之后,它起到了双重作用:

>>> import SimpleCV
>>> from SimpleCV import Shell
你刚才有没有试过:

import SimpleCV


python是区分大小写的。

奇怪的是,您使用的是
import simplecv
,但也使用了来自simplecv import的
。Python区分大小写…是否安装了openCV?
import SimpleCV
from SimpleCV import *