[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Windows switch between python 2 and 3
From: eryk sun <eryksun () gmail ! com>
Date: 2016-10-27 20:13:50
Message-ID: CACL+1autNGMJ5Hi0W+8erx-h2BgdHSUoM87Liy_4wgSuirNWdQ () mail ! gmail ! com
[Download RAW message or body]
On Thu, Oct 27, 2016 at 3:41 PM, Steve D'Aprano
<steve+python@pearwood.info> wrote:
> On Fri, 28 Oct 2016 02:11 am, Daiyue Weng wrote:
>
>> Hi, I installed Python 2.7 and Python 3.5 64 bit versions on Win 10. Under
>>
>> C:\Python35
>>
>> C:\Python27
>>
>> Both have been set in environment variable Path.
>>
>> When I type python in cmd, it only gives me python 2.7, I am wondering how
>> to switch between 2 and 3 in command prompt.
>
> I don't use Windows, so I am guessing, but you could try:
>
> python2
> python27
>
> python3
> python35
These links aren't created by the installer, but you can create them
if that's your preference. Execute the following in an admin command
prompt:
mklink C:\Python27\python2.7.exe C:\Python27\python.exe
mklink C:\Python27\python2.exe C:\Python27\python.exe
mklink C:\Python35\python3.5.exe C:\Python35\python.exe
mklink C:\Python35\python3.exe C:\Python35\python.exe
--
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic