Installed Python but running command line python opens up Microsoft Store instead. Modify install ..

Опубликовано: 30 Сентябрь 2024
на канале: aleks dude
805
6

Disclaimer: Boring Video.
Recently I installed python and had this issue where whenever I tried run a python command on command prompt in windows 10.... it was instead opening the Microsoft Store.

I figured out through stackoverflow that my installation was missing a setting. When you first install python, there is an option that's default off:
Add Python to Windows Environment Variables
or
Add Python to Environment Path
or
Add Python to Environment Variables.

Anyways.. you get the gist.. if this is off.. then there's no way to run it in command prompt.

Hope noone makes this bonehead move like me.
You can fix the problem by going into programs and features and then modifying the python installation. Just click Next once and on the 2nd installation page you can enable "Add Python to Environment Variables."

Good luck.