简体   繁体   English

Python文件:ImportError:在Eclipse中没有名为win32com.client的模块。 但是相同的文件在命令提示符下工作

[英]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. 错误: ImportError: No module named win32com.client在eclipse中执行.py文件时, ImportError: No module named win32com.client 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. 我怀疑您有多个python安装程序,并且使用eclipse映射的解释器没有该库。

Run following both on command prompt and eclipse, see if there any differences 在命令提示符和Eclipse上都执行以下操作,看是否有任何区别

import sys
print sys.path

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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