简体   繁体   中英

Python file :ImportError: No module named win32com.client in eclipse. But same file works in command prompt

Error: ImportError: No module named win32com.client when I execute .py file in eclipse. It works fine when it is executed using command prompt.

I doubt you have multiple python installations and the interpreter which is mapped with eclipse doesn't have the library.

Run following both on command prompt and eclipse, see if there any differences

import sys
print sys.path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM