HELP

My Spyder python version is 3.7.9. I tried to run `import win32com.client 
as win32` then I got the error below.

    Traceback (most recent call last):
    
      File "<ipython-input-1-360eab2b8977>", line 1, in <module>
        import win32com.client as win32
    
      File 
"C:\Users\abc\AppData\Local\Programs\Spyder\pkgs\win32com\__init__.py", 
line 6, in <module>
        import pythoncom
    
      File "C:\Users\abc\AppData\Local\Programs\Spyder\pkgs\pythoncom.py", 
line 2, in <module>
        import pywintypes
    
    ModuleNotFoundError: No module named 'pywintypes'


I copied these files (pythoncom38.dll + pywintypes38.dll + pythoncom37.dll 
and pywintypes37.dll) from 

C:\Users\"Your user 
id"\AppData\Roaming\Python\Python38\site-packages\pywin32_system32 

to 

C:\Users\"Your user 
id"\AppData\Roaming\Python\Python38\site-packages\win32\lib 

and 

C:\Users\"Your user id"\AppData\Roaming\Python\Python38\site-packages\win32

BUT I am getting the same error. 

Please help me out here. 

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/5a1057a9-a13f-4b56-8db1-37df000fe416n%40googlegroups.com.

Reply via email to