ImportError: No module named win32com.client
excel, python, win32com
Solution
`pip install pywin32` didn't work for me but `pypiwin32` did.
Problem
I am currently using python 2.7 and trying to open an Excel sheet. When using the code below: ``` import os from win32com.client import Dispatch xlApp = win32com.client.Dispatch("Excel.Application") xlApp.Visible = True # Open the file we want in Excel workbook = xlApp.Workbooks.Open('example.xls') ``` I get this error: ImportError: No module named win32com.client Is there any possibility of getting the error since I am using 64-bit Windows machine?
Related problems
- PyWin32 and Python 3.8.0
- What is the difference between pywin32 and pypiwin32?
- PyCharm doesn't recognize installed module
- Can't import dll module in Python
- Python Ctypes - loading dll throws OSError: [WinError 193] %1 is not a valid Win32 application
- How to install a package for a specific Python version on Windows 10?
- PyWin32 (226) and virtual environments
- How to update pywin32 automatically?