python 2.7 - Scripts run on the IDLE shell but not when run through the editor -


recently, installed version 2.7.13 @ work. codes work fine when run through shell. when run script in editor, not past first line.

for example, if run import xlrd in editor, throws following error:

xlrdfail.py name gave editor script fyi  traceback (most recent call last):   file ".....\xlrdfail.py", line 1, in <module>     import xlrd   file "c:\users\soham.s\xlrd.py", line 1     python 2.7.13 (v2.7.13:a06454b1afa1, dec 17 2016, 20:53:40) [msc v.1500 64 bit (amd64)] on win32              ^ syntaxerror: invalid syntax 

i using windows 7 (prof) pc, 64 bit os.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -