I have the launcher installed and I configured it with a C:\Windows\py.ini file to run Python 3 when typing "py". But when I type the file name it runs Python 2.
>py Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> exit() >python --version Python 2.7.12 >assoc .py .py=Python.File >ftype Python.File Python.File="C:\Python27\python.exe" "%1" %* How do I associate .py files with the launcher? I read this http://stackoverflow.com/questions/5087831/how-should-i-set-default-python-version *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen> <http://www.linkedin.com/in/urievenchen> <http://twitter.com/urievenchen> On Tue, Aug 2, 2016 at 3:44 PM, Uri Even-Chen <u...@speedy.net> wrote: > I don't understand. How do I use the Python Launcher? I didn't find such > an option when installing Python 3. http://screencast.com/t/mBXfyMw4jpa > http://screencast.com/t/FidjuB68aJ5G > > > *Uri Even-Chen* > [image: photo] Phone: +972-54-3995700 > Email: u...@speedy.net > Website: http://www.speedysoftware.com/uri/en/ > <http://www.facebook.com/urievenchen> > <http://plus.google.com/+urievenchen> > <http://www.linkedin.com/in/urievenchen> <http://twitter.com/urievenchen> > > On Tue, Aug 2, 2016 at 3:21 PM, Edward Diener <eldiener@tropicsoft.invalid > > wrote: > >> On 8/2/2016 8:11 AM, Uri Even-Chen wrote: >> >>> Hi, >>> >>> I want to install Python 3 on Windows, but I also need Python 2 for >>> Google >>> App Engine SDK. When I type a name of a Python file in command line, I >>> want >>> it to run with Python 3. However, I checked with "print 3/5" and it >>> printed >>> 0 - Python 2. I have the latest versions of Python installed >>> - python-2.7.12.msi and python-3.5.2.exe >>> >>> python --version >>>> >>> Python 2.7.12 >>> >>> assoc .py >>>> >>> .py=Python.File >>> >>> ftype Python.File >>>> >>> Python.File="C:\Python27\python.exe" "%1" %* >>> >>> By the way, it there a way to print the Python version from Python? >>> >> >> Use the Python Launcher for Windows. >> >> -- >> https://mail.python.org/mailman/listinfo/python-list >> > > -- https://mail.python.org/mailman/listinfo/python-list