How to Run a Python ( .py ) File in Windows laptop / computer

  Рет қаралды 256,406

Example Program

Example Program

3 жыл бұрын

In this tutorial you will learn How to run Python ( .py ) files on windows laptop computer.
Download and install Python in Windows 10
• How to Install Python ...
After that we use the command prompt( cmd ) and run the file.
our Social Media Pages
/ exampleprogram
/ exampleprogram
/ example_program
Our Website
www.ExampleProgram.com
#ExampleProgram

Пікірлер: 115
@Lav.
@Lav. 20 күн бұрын
Today was my first time using Python and I've lost hours trying to understand how to generate a word document using a .py file (how to save it first, how to run it with cmd etc) . I managed to understand immediately and resolved my problem! You have excellent teaching skills! A beginner can be grateful to find your videos!
@ExampleProgram
@ExampleProgram 12 күн бұрын
glad my video helped you. keep learning :)
@DinaMohamed-on8tg
@DinaMohamed-on8tg 8 күн бұрын
I CAN FINALLY BREATH!! it's been literally an hour of me searching an reading article and long confusing tutorials on how to open a file! And then just like that, here it is.. as simple as opening a file should be! THANK YOU!!!! ❤
@ExampleProgram
@ExampleProgram 8 күн бұрын
Glad my video helped you
@CentHiker
@CentHiker Ай бұрын
Even though it sounds like something ChatGPT would say when you ask about Python code or anything else, "Remember to install Python on your computer," that trick with writing "cmd" in the path was awesome! Thanks.
@Alchemist10241
@Alchemist10241 10 ай бұрын
I didn't know you can start the cmd from a specific path, this trick is very useful
@toddvance1568
@toddvance1568 Жыл бұрын
Ive been programming for years and NEVER knew about that CMD trick.... thank you!!!
@ExampleProgram
@ExampleProgram Жыл бұрын
you are welcome :)
@pandasan4443
@pandasan4443 3 жыл бұрын
hello please help [Errno 2] No such file or directory
@wallu9298
@wallu9298 Жыл бұрын
This changed my life i have been working on a small ai that does many stuff so this saved the project from being forgotten
@papaji4545
@papaji4545 2 жыл бұрын
My saved program file of python gets closed whenever i execute it what should i do ???? Plz reply
@sakthidrawingacademy
@sakthidrawingacademy 6 ай бұрын
Sir after creating the python project... How to copy my project to share with others?
@rickdzurek7002
@rickdzurek7002 2 жыл бұрын
Man thanks this was really helpfull It seems that developers are obsessed with this way of running python. IS there any alternative to cmd ? BTW love the tip to open cmd thru file explorer it helps a lot in the beggings
@alexandriarichard7671
@alexandriarichard7671 10 ай бұрын
Thank you I was stuck for hours trying to figure this out
@ExampleProgram
@ExampleProgram 10 ай бұрын
Glad I could help
@evanbloom1360
@evanbloom1360 3 ай бұрын
is there a possible way to open the path as admin?
@rianpratama8262
@rianpratama8262 Жыл бұрын
How to run file python after py in cmd? In terminal i'm write py then after this i want to run file pyhton.
@vuhuynh158
@vuhuynh158 8 күн бұрын
I love this guy.
@ExampleProgram
@ExampleProgram 8 күн бұрын
😀👍
@johnnygarcia7297
@johnnygarcia7297 2 жыл бұрын
You my man is a KING ty for the help finally some real help not bs like the rest videos on youtube
@aranyaojha4241
@aranyaojha4241 Жыл бұрын
Very useful information...Thank U so much sir...👍
@ExampleProgram
@ExampleProgram Жыл бұрын
Welcome
@minibuile311
@minibuile311 4 ай бұрын
It says "-Error this must be run with admin privileges" any fix?
@ospy_edits
@ospy_edits Жыл бұрын
What if it's a program that's not a text file it's like a d-dos sight
@dhivyapraveen3749
@dhivyapraveen3749 2 жыл бұрын
Very much helpful to us...expecting more information from python & Php
@ExampleProgram
@ExampleProgram 2 жыл бұрын
Sure
@yazanal-khateeb1410
@yazanal-khateeb1410 3 жыл бұрын
Thanks, man! This was helpful :-)
@ExampleProgram
@ExampleProgram 3 жыл бұрын
Glad it helped!
@XBEAST321
@XBEAST321 2 жыл бұрын
Thanks Dude Love You
@ExampleProgram
@ExampleProgram 2 жыл бұрын
Pleasure
@bts__kannadaarmy_club122
@bts__kannadaarmy_club122 9 ай бұрын
Its showing python can't open this file what can i do
@Anon3211
@Anon3211 2 жыл бұрын
What if it needs root?
@kayday6598
@kayday6598 3 жыл бұрын
Thank you sincerely kind sir
@ExampleProgram
@ExampleProgram 3 жыл бұрын
Pleasure 😀
@priyanshumukherjee4956
@priyanshumukherjee4956 3 жыл бұрын
I appreciate my own comment too as I didn't think that it would be such a 'to the point' pls keep my request and try to fulfill it in ur next vdo
@ExampleProgram
@ExampleProgram 3 жыл бұрын
Sorry I don’t understand what you are talking about.
@none2
@none2 10 ай бұрын
That's all I needed; thank you
@ExampleProgram
@ExampleProgram 10 ай бұрын
welcome :)
@wuyanchu
@wuyanchu 2 жыл бұрын
Thx and god bless u 😇
@ExampleProgram
@ExampleProgram 2 жыл бұрын
Most welcome 😊
@munnisingh2248
@munnisingh2248 Жыл бұрын
:) thnk you so much 😊
@ExampleProgram
@ExampleProgram Жыл бұрын
You're welcome 😊
@habeebkehinde624
@habeebkehinde624 Жыл бұрын
Thanks man, appreciate,, but I still have a problem running my file,,, when I click on the file to open it keeps saying modify or repair or uninstall,,, what can I do to that bro?
@habeebkehinde624
@habeebkehinde624 Жыл бұрын
@Exampleprogramme I hope you see this soon
@fazlihaq-qg9uw
@fazlihaq-qg9uw Жыл бұрын
Really helpful.
@ExampleProgram
@ExampleProgram Жыл бұрын
glad my video helped you :)
@andreineagu4664
@andreineagu4664 5 ай бұрын
But my python version still not found and i have installed it and I've done all the steps
@GDNachoo
@GDNachoo 5 ай бұрын
For everyone watching, if windows says that the "phyton" command doesn't exist, use "py" instead
@AmphetaminesDaily
@AmphetaminesDaily 22 күн бұрын
My goat
@PrachitiSawalkar
@PrachitiSawalkar 7 ай бұрын
Thank you so much ❤
@ExampleProgram
@ExampleProgram 7 ай бұрын
You're very welcome!
@electrix8164
@electrix8164 4 ай бұрын
doesnt do anything it shows version python commands do not work and scripts dont run no matter how many times i restart or change the environment variables or reinstall python
@I1fl
@I1fl Ай бұрын
THX bro
@ExampleProgram
@ExampleProgram Ай бұрын
Welcome
@dahoodselling9093
@dahoodselling9093 3 жыл бұрын
How do you get the python file?
@aishwaryawalke8595
@aishwaryawalke8595 3 ай бұрын
Thanku for your help
@ExampleProgram
@ExampleProgram 3 ай бұрын
Most welcome
@Chemsnow
@Chemsnow Жыл бұрын
Thank you very much
@ExampleProgram
@ExampleProgram Жыл бұрын
You are welcome
@Chemsnow
@Chemsnow Жыл бұрын
I am a developer and my python files can't get open
@aburimeuyiosa9006
@aburimeuyiosa9006 9 ай бұрын
Thanks man
@ExampleProgram
@ExampleProgram 9 ай бұрын
You're welcome!
@kullispang3373
@kullispang3373 Жыл бұрын
You're da best
@ExampleProgram
@ExampleProgram Жыл бұрын
thanks
@kavinduavishka5166
@kavinduavishka5166 Жыл бұрын
F:\>python work.py File "F:\work.py", line 1 Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32 ^^^^ SyntaxError: invalid syntax why is that?
@ExampleProgram
@ExampleProgram Жыл бұрын
have you made any syntax error in code ??
@ethanbloom114
@ethanbloom114 7 ай бұрын
thank you !
@ExampleProgram
@ExampleProgram 7 ай бұрын
You're welcome!
@GamerWins
@GamerWins Жыл бұрын
Thanks bro
@ExampleProgram
@ExampleProgram Жыл бұрын
Welcome
@dumar2
@dumar2 7 ай бұрын
It wokred. thanksso much +1 subscriber
@ExampleProgram
@ExampleProgram 7 ай бұрын
Welcome!
@user-qv6eu1qi7w
@user-qv6eu1qi7w 10 ай бұрын
I really, really love coding
@ExampleProgram
@ExampleProgram 9 ай бұрын
awesome :)
@riderix5687
@riderix5687 2 ай бұрын
thank you
@ExampleProgram
@ExampleProgram 2 ай бұрын
most welcome :)
@bryanmarroquin2247
@bryanmarroquin2247 2 жыл бұрын
it work but when i run it it say C:\Users\lor_brybry\Videos\avery>python avery.py Traceback (most recent call last): File "C:\Users\lor_brybry\Videos\avery\avery.py", line 1, in import requests ModuleNotFoundError: No module named 'requests'
@bryanmarroquin2247
@bryanmarroquin2247 2 жыл бұрын
help please
@sulkoma
@sulkoma Жыл бұрын
@@bryanmarroquin2247 exactly the same for me, no matter what py file i try
@papamike7765
@papamike7765 Жыл бұрын
same
@sushantchhabra112
@sushantchhabra112 2 жыл бұрын
help ! this is error : Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
@ExampleProgram
@ExampleProgram 2 жыл бұрын
make sure that you have installed python.
@sushantchhabra112
@sushantchhabra112 2 жыл бұрын
@@ExampleProgram i have installed latest version , still this error comes , when i open file , it dont open .
@ExampleProgram
@ExampleProgram 2 жыл бұрын
Have you added python installation location to path environment variable
@sushantchhabra112
@sushantchhabra112 2 жыл бұрын
@@ExampleProgram how to do that
@ExampleProgram
@ExampleProgram 2 жыл бұрын
How to Add Python Installation location to Path Environment Variable in Windows 10 kzbin.info/www/bejne/opbdmaV8mbuGjLs
@reichenmonteverde6108
@reichenmonteverde6108 9 ай бұрын
Thankyouu
@ExampleProgram
@ExampleProgram 9 ай бұрын
Welcome 😊
@jaydencrimsoneverett6731
@jaydencrimsoneverett6731 10 ай бұрын
It said 'python' is not recognized as an internal or external command, operable program or batch file. So is it basically ignoring the fact I have Python installed?
@user-eb3jq1os4r
@user-eb3jq1os4r 7 ай бұрын
didnt work
@sanckyjsanckyj
@sanckyjsanckyj 11 ай бұрын
Opening VPY files
@SunShine-xf9te
@SunShine-xf9te 2 жыл бұрын
But sometime it says "[Errno 2] No such file or directory" what should I do next? :))
@exotiicv1
@exotiicv1 2 жыл бұрын
Do you find a answer ?
@gekkefries24
@gekkefries24 Жыл бұрын
The name of the file is just wrong so the programmer made a mistake
@rajin9822
@rajin9822 2 жыл бұрын
Hello! Thanks for tutorial **BUT** I can't open .py files. If I open .py file, then it open "What do you want to open this file with?" Please help me. :)
@ExampleProgram
@ExampleProgram 2 жыл бұрын
Try to open it with notepad
@rajin9822
@rajin9822 2 жыл бұрын
@@ExampleProgram Alright.
@sulkoma
@sulkoma Жыл бұрын
This does not work for me sadly I get an error, it shows python is installed by when i run commands such as "py file.py" or "python file.py" I get nothing working I've tried adding the python dir to my system variables & tried running cmd line as admin but it just wont work to open python files still..
@ExampleProgram
@ExampleProgram Жыл бұрын
click on start button search for manage app execution aliases if you see python in there then disable it try checking python version installed Hope this helps :)
@nikosderzekos576
@nikosderzekos576 Жыл бұрын
epic
@ExampleProgram
@ExampleProgram Жыл бұрын
Thanks :)
@beytu7915
@beytu7915 2 жыл бұрын
@norilol07
@norilol07 2 жыл бұрын
THANK YOU SO MUCH BRO
@ExampleProgram
@ExampleProgram 2 жыл бұрын
You're welcome!
@totallynotimpostor8533
@totallynotimpostor8533 11 ай бұрын
upgrade yo windows
@wowandrss
@wowandrss 7 ай бұрын
Of course it's an indian. HOW IS THAT ALWAYS THE CASE?
@atomicbrain9401
@atomicbrain9401 Жыл бұрын
python hello.py
@atomicbrain9401
@atomicbrain9401 Жыл бұрын
i have typed it like in this video and the python file will not run on KZbin comments.
@Midhun938
@Midhun938 Жыл бұрын
54k for this 😂
@ExampleProgram
@ExampleProgram Жыл бұрын
yes
@risaevergarden7329
@risaevergarden7329 7 ай бұрын
Yes, many people weren't born as genius as you 😂
@sobiamunir6882
@sobiamunir6882 3 ай бұрын
200k now 😅
@beastnationofficial
@beastnationofficial 2 жыл бұрын
Thanks Dude Love You
@ExampleProgram
@ExampleProgram 2 жыл бұрын
pleasure :)
How to Run Python Programs ( .py files ) on Windows 11 ( All Options )
6:13
Example Program
Рет қаралды 1,3 МЛН
40 Windows Commands you NEED to know (in 10 Minutes)
10:54
NetworkChuck
Рет қаралды 3,2 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 8 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 14 МЛН
How to Convert a Python File to .EXE
4:44
Programming With Nick
Рет қаралды 39 М.
How to do Python Scripting (run a python py file)
8:30
Tony Teaches Tech
Рет қаралды 9 М.
Should You Install Software Using .EXE or .MSI ?
10:15
ThioJoe
Рет қаралды 538 М.
How to run Python in Visual Studio Code
4:17
Amit Thinks
Рет қаралды 125 М.
How to Run Python Programs | Video Tutorial
5:50
Amulya's Academy
Рет қаралды 323 М.
How to Install Python from Microsoft Store in Windows 11 Laptop Computer
3:37
PhD AI student explains how China already have won in AI..
13:28
livinlavidaluke
Рет қаралды 49 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
How do computers read code?
12:01
Frame of Essence
Рет қаралды 3,1 МЛН
Write Python Code in Notepad & Execute in Command Prompt | Python Tutorial
10:55
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 8 МЛН