no module named win32com.client 错误解决

简介:

no module named win32com.client错误解决

一、错误描述

  运行import win32com.client 的时候发现有import Error  no module named win32com.client这个提示,表明该模块未安装。

二、下载模块

  从  https://sourceforge.net/projects/pywin32/files/pywin32/  下载相应Python版本的模块。安装后问题即解决。

wKioL1h1qRXA0HYLAADqbjQvX2k765.png-wh_50

  pywin32-220.win-amd64-py2.7.exe 对应python 64位

  pywin32-220.win32-py2.7.exe 对应python 32位

三、查看python位数

1
2
3
4
5
  C:\Users\Hunk>python
Python  2.7 . 13  (v2. 7.13 :a06454b1afa1, Dec  17  2016 20 : 42 : 59 ) [MSC v. 1500 
32  bit(Intel)] on win32
Type  "help" "copyright" "credits"  or  "license"  for  more information.
>>>

四、选择相应的模块安装

  由于我windows 下安装有多个python版本,

  双击安装 pywin32-220.win32-py2.7.exe,注意该模块自动选择的python路径是否是你需要运行的python环境。




      本文转自独弹古调  51CTO博客,原文链接:http://blog.51cto.com/hunkz/1891025,如需转载请自行联系原作者





相关文章
|
5月前
No module named ‘win32file‘
No module named ‘win32file‘
39 0
|
Ubuntu Python
pip3 执行错误 No module named 'distutils.cmd'
pip3 执行错误 No module named 'distutils.cmd'
1441 0
|
9天前
|
Python
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
|
5月前
|
Python
python ModuleNotFoundError: No module named ‘ldap‘ Failed building wheel for python-ldap
python ModuleNotFoundError: No module named ‘ldap‘ Failed building wheel for python-ldap
45 0
|
8月前
pip安装skbuild报错:ModuleNotFoundError: No module named ‘skbuild’解决方法
pip安装skbuild报错:ModuleNotFoundError: No module named ‘skbuild’解决方法,换源
521 0
|
11月前
[metasploit]msf启动:msf failed to load and returned this error 'cannot load such file -- bundler/setup'
[metasploit]msf启动:msf failed to load and returned this error 'cannot load such file -- bundler/setup'
|
Linux
原因及解决办法:Failed to load module “canberra-gtk-module“
原因及解决办法:Failed to load module “canberra-gtk-module“
425 0
|
Python
解决办法:ImportError: No module named pycuda.driver
解决办法:ImportError: No module named pycuda.driver
216 0
|
NoSQL Python
解决gdb报错:Failed to import the site module,No module named '_sysconfigdata_m'
解决gdb报错:Failed to import the site module,No module named '_sysconfigdata_m'
338 0
ImportError: No module named _internal
ImportError: No module named _internal
73 0