as all know it is impossible to write long python script directly on Linux machine with vi editor
so we use (win editor) tools as visual studio / Pycharm and so on ....
so my question is how to execute python script on WIN from Visual studio with Linux environment?
For example
The following python code was written on the visual studio
import os
f = os.popen('date')
now = f.read()
print "Today is ", now
Usually after I write the code on the visual studio, then I send the python file to the Linux machine and I run the python on Linux environment
And that because we cant run python code that fit for linux on win
Please advice if there are some alternative to run the python on Visual studio or other editors with Linux environment?
python sample.py
worked fine on my Linux machine, so what is it that's preventing you from running it? Perhaps an example that doesn't work and the accompanying error message would help – Eric Renouf Aug 17 at 16:42