How to Run direct python file ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to Run direct python file ?

I mean, if i open my saved .py file it should be run direct , not in pyCharm or shell Run program without open all statement Help please.!...

23rd Aug 2020, 8:13 AM
Kamesh Aditya
Kamesh Aditya - avatar
1 Answer
+ 4
Theres no doing that. You need an interpereter. The closest you'll come is making a batch file thats linked to your interpreter and .py file. You can then run the batch file to run your script.
23rd Aug 2020, 8:20 AM
Slick
Slick - avatar