Why is this happening and how to solve this with execution of Python scripts on different Py ver. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is this happening and how to solve this with execution of Python scripts on different Py ver.

I made some scripts in different versions of Python (3.5.2, 3.6.1 , 3.6.4) and when I transfered files on computer with other version than those in which script had been coded, it cannot be executed as normal program but have to be loaded "manually" through open/file in IDLE (or it just opens and close immediately despite it has to process user inputs first). This is happening both in Windows and Ubuntu Linux (in Linux it just opens code like it is txt file) Even option from right-click context menu, "Edit with IDLE" does not respond

23rd May 2018, 6:51 PM
Sasha Djekic
1 Answer
0
Still doesn't work. In Linux also with /env python. Can you give more detailed explanation? It is interesting that some scripts work normally even if those been written in other ver. but the other even in same ver. suddenly stoped to work.
24th May 2018, 8:35 AM
Sasha Djekic