开发者

import modules in python

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 state开发者_运维百科ment in a py script...im using windows XP


Check if you are running on the same installation. I'd do that by looking the path:

import sys
print sys.path

And compare the output on IDLE and when you run the .py

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜