no module named win32com.client 錯誤解決

來源:互聯網
上載者:User

標籤: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版本的模組。安裝後問題即解決。

650) this.width=650;" src="https://s5.51cto.com/wyfs02/M01/8C/B5/wKioL1h1qRXA0HYLAADqbjQvX2k765.png-wh_500x0-wm_3-wmp_4-s_2834714948.png" title="pywin32.png" alt="wKioL1h1qRXA0HYLAADqbjQvX2k765.png-wh_50" />

  pywin32-220.win-amd64-py2.7.exe 對應python 64位

  pywin32-220.win32-py2.7.exe 對應python 32位

三、查看python位元

 C:\Users\Hunk>pythonPython 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit(Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>>

四、選擇相應的模組安裝

  由於我windows 下安裝有多個python版本,

  雙擊安裝 pywin32-220.win32-py2.7.exe,注意該模組自動選擇的python路徑是否是你需要啟動並執行python環境。

no module named win32com.client 錯誤解決

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.