[FIXED] Python Was Not Found Run Without Arguments to Install from the Microsoft Store (2024)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay so I have this main.py here that I'm going to run using Python main.py and as you can see I'm getting this error python was not found run without arguments to install from Microsoft store so let's see how we can fix this error first we need to find out where the python is installed so if you don't have python installed in your Windows system check the links in the description it will show you how to install python now once you have python installed you need to find out where it installed so what I'll do is I'll go to my torer and show you the default installation directory of python and just follow along with me and if you find python there that's good if you don't find python there I will show you how to search for python now in your C drive go to users go to your current user and then go inside app data if app data is not visible in your case what you need to do is it might be hidden it is hidden by default C click on this view here click on show and then select hidden items and hidden items will be shown once ad is visible go inside this and go inside local and here you need to go inside programs and then you'll find python here and I have multiple installations of python so I'll choose 319 python 39 here so this is the path right here you have python.exe now you need to copy this whole path so click on this address bar and copy it now if you don't find python here what you need to do is again it is most likely installed in your C drive right so you can go to C drive and search for python here now it'll take a while and it will give you a list of options so as you can see it is giving me Python 27. dll and similarly it will give search for everything that has python return on it or what you can do is you can search for python.exe itself so this is what we are looking for when you find this file just right click on it and go to file directory and then copy by clicking here on the US in the address bar as we had just done earlier okay so once you have copied the path now press the Windows key and type environment variable and click on this edit system inment variables now click on inment variables again and here in this path select path and click on edit double click on this bottom empty row here and paste what we had just copied now click okay click okay again click okay again and now go back to your project directory open command prompt here and now let's try to run this again so this time as you can see we don't get that error and our python is now recognized in our Command Prompt so if you have any problems fixing this let me know in the comments below
Info
Channel: The Code City
Views: 2,548
Rating: undefined out of 5
Keywords:
Id: 3or-lJqesKM
Channel Id: undefined
Length: 3min 16sec (196 seconds)
Published: Sat Jan 27 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.