when i write import win32print in my python command line (IDLE) it works fine and it is imported...
but when i write import win32print in my py file then it gives an error
says no module named win32print

why am i not able to load the module when writing the same statement in a py script...im using windows XP

you can try to copy the module or folder from python\lib\site-packages or
python\lib to the same directory as the py script. then it will always be imported into the file.

never mind...i figured out the solution...apparently i was using two different python istallations !

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.