导入win32api时出现问题

时间:2019-10-30 14:14:38

标签: python python-3.x

Error code in the image

import datetime
import os
import smtplib
import webbrowser

import pyttsx3  # pip install pyttsx3
import speech_recognition as sr  # pip install speechRecognition
import wikipedia  # pip install wikipedia

engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
print(voices[1].id)

错误代码文字:

import win32com.client
File "C:\Users\OM\AppData\Local\Programs\Python\Python38\lib\site-packages\win32com\__init__.py", line 5, in <module>
import win32api, sys, os
ImportError: DLL load failed while importing win32api: The specified module could not be found.

0 个答案:

没有答案