How to import win32file module?

How to import win32file module?

rajasekaransurjen
Collaborator Collaborator
1,568 Views
1 Reply
Message 1 of 2

How to import win32file module?

rajasekaransurjen
Collaborator
Collaborator

Hi,

I am facing the following error.

 

import os
import sys
import win32file

 

# Error: ImportError: file <maya console> line 3: No module named win32file #

 

 

please if anyone can help me would be awesome, Thank you in advance.

0 Likes
1,569 Views
1 Reply
Reply (1)
Message 2 of 2

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

You'll need to build pywin32 for Maya yourself.

 

I've written a blog for building Pillow before, it should be similar, the only difference of building environment should be Maya 2018 uses VS2015 instead.

 

Yours,

Li

0 Likes