I have installed the latest Python for Win10 from Releases for Windows.
Just typing py in the Command Prompt Window starts Python.
Microsoft Windows [Version 10.0.15048]
(c) 2017 Microsoft Corporation. All rights reserved.
C:Userssg7>py
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>>`enter code here`
Testing:
>>> print(“hello!”)
hello!
>>>
Please be aware that in my case Python was installed in C:Userssg7AppDataLocalProgramsPythonPython36> directory
C:Userssg7AppDataLocalProgramsPythonPython36>dir
Volume in drive C is Windows7_OS
Volume Serial Number is 1226-12D1
Directory of C:Userssg7AppDataLocalProgramsPythonPython36
08/05/2018 07:38 AM
08/05/2018 07:38 AM
12/18/2017 09:12 AM
12/18/2017 09:12 AM
12/18/2017 09:12 AM
12/18/2017 09:12 AM
12/18/2017 09:12 AM
10/03/2017 07:17 PM 30,334 LICENSE.txt
10/03/2017 07:17 PM 362,094 NEWS.txt
10/03/2017 07:15 PM 100,504 python.exe
10/03/2017 07:12 PM 58,520 python3.dll
10/03/2017 07:12 PM 3,610,776 python36.dll
10/03/2017 07:15 PM 98,968 pythonw.exe
08/05/2018 07:38 AM 196,096 Removescons.exe
08/05/2018 07:38 AM 26,563 scons-wininst.log
08/05/2018 07:38 AM
12/18/2017 09:12 AM
12/18/2017 09:12 AM
06/09/2016 11:53 PM 87,888 vcruntime140.dll
9 File(s) 4,571,743 bytes
10 Dir(s) 20,228,898,816 bytes free
When I am at C:Userssg7> directory level python can be invoked by typing
AppDataLocalProgramsPythonPython36python
C:Userssamg>AppDataLocalProgramsPythonPython36python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
Newer Python 3.7 will be installed at:
C:UsersYourUserNameHereAppDataLocalProgramsPythonPython37
If you wish you can add to your path environment variable:
%USERPROFILE%AppDataLocalProgramsPythonPython36
It finally worked!!!
I needed to do things to get it to work
Add C:Python27 to the end of the PATH system variable
Add C:Python27 to the end of the PYTHONPATH system variable
I had to add these to both for it to work.
If I added any subdirectories, it did not work for some reason.
Thank you all for your responses.