Pip Install Win32com, You can run your code like … To use win32com in your Python environment, you need to install it.