Python 3.4 :ImportError: no module named win32api

前端 未结 6 1390
萌比男神i
萌比男神i 2020-11-28 11:26

I am using python 3.4 on windows 7.In order to open a doc file i am using this code

import sys
import win32com.client as win32

word = win32.Dispatch(\"Word.         


        
6条回答
  •  一生所求
    2020-11-28 11:47

    I encountered the same error yestoday with Python 3.6.1 on Windows 7, and resolved it by "pip install pypiwin32".

提交回复
热议问题