Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

I'm at present utilizing python 2.7 and attempting to open an Excel sheet. When utilizing the code underneath: 

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'm getting this error:

ImportError: No module named win32com.client

Is there any chance of getting the error since I am using 64-cycle Windows machine?

1 Answer

0 votes
by (26.4k points)

Try 

pypiwin32 

Because pip install pywin32 didn't worked for me.

Interested to learn the concepts of Python in detail? Come and join the python course to gain more knowledge in python

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 29, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Nov 22, 2020 in Python by ashely (50.2k points)

Browse Categories

...