2014-05-21 4 views
0

저는 Python을 처음 사용하고 speech 라이브러리를 설치했습니다. 내가 파이썬에서 speech를 가져 오는거야 때마다하지만 pywin32를 설치음성 라이브러리 설치 오류

>>> import speech 
Traceback (most recent call last): 
    File "<pyshell#0>", line 1, in <module> 
    import speech 
    File "C:\Python34\lib\site-packages\speech-0.5.2-py3.4.egg\speech.py", line 55, in <module> 
    from win32com.client import constants as _constants 
    File "C:\Python34\lib\site-packages\win32com\__init__.py", line 5, in <module> 
    import win32api, sys, os 
ImportError: DLL load failed: The specified module could not be found. 
+0

제거하고 설치를 다시 시도 했습니까? – Mansueli

+1

'speech' 모듈에'win32api'에 대한 선언되지 않은 의존성이있는 것 같습니다. 따라서 [pywin32] (http://sourceforge.net/projects/pywin32/)를 다운로드하고 설치하면 도움이 될 수 있습니다. –

답변

0

당신이 필요로하는 오류를주고 쉘.

사용 easy_install pywin32 또는 pip install pywin32

0

은 README의 requirements section에서 언급 한 바와 같이 speech 라이브러리는 pywin32을 설치해야합니다 :

Windows XP 또는 Vista 및 파이썬 2.4 또는 2.5이 필요합니다. Windows Vista를 사용하는 경우 음성 인식이 깨어 있지 않으면 "듣기 시작"이라고 말해야합니다.

easy_installing speech.py ​​외에도 pywin32 ( 의 경우 Python 2.5 또는 Python 2.4)가 필요합니다. XP를 사용하는 경우 Microsoft 음성 키트 (여기에서 설치 프로그램)가 필요합니다.

을 가져 오기 전에 pywin32을 다운로드하여 설치하십시오.