cmd prompt does not recognizes python command on Windows 7

eryk sun eryksun at gmail.com
Wed Aug 10 15:17:43 EDT 2016


On Wed, Aug 10, 2016 at 2:03 PM, Random832 <random832 at fastmail.com> wrote:
> On Wed, Aug 10, 2016, at 06:34, eryk sun wrote:
>> On Wed, Aug 10, 2016 at 4:46 AM,  <sh.ajay12 at gmail.com> wrote:
>> >
>> > i have installed python 3.5 , but the python command is not recognized
>> >
>> > C:\Users\sharmaaj>python
>> > 'python' is not recognized as an internal or external command,
>> > operable program or batch file.
>> >
>> > what should i do to run python commands.
>>
>> Modify your setup. Open "Programs and Features" from the control
>> panel. Right-click the entry for Python 3.5 (not "Python Launcher")
>> and select Uninstall/Change. In the dialog, click on "Modify". Click
>> "Next" and select "Add Python to environment variables". Click
>> "Install". When it's done, open a new command prompt and enter
>> "python".
>
> Or he could just use "py", which is the python launcher you just
> mentioned, and works fine. If he has other versions of python installed
> he may need "py -3".

>From what I can tell in discussions that I've read, the consensus of
core developers is to not encourage novice users to use py.exe
directly. The preferred way to start Python is still via python.exe.
That said, experienced users will probably find using py.exe to be
more convenient. I do.



More information about the Python-list mailing list