Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'linux,': 0.05; 'python3': 0.05; 'scripts': 0.09; 'python': 0.09; '(although': 0.09; 'edward': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'subject:same': 0.09; 'supported.': 0.09; 'url:peps': 0.09; 'windows,': 0.09; 'yet.': 0.13; 'properly': 0.15; 'complicated,': 0.16; 'entries,': 0.16; 'fits': 0.16; 'installs': 0.16; 'invoking': 0.16; 'offical': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'registry': 0.16; 'wrote:': 0.17; 'specify': 0.17; 'url:dev': 0.17; '>>>': 0.18; 'memory': 0.18; 'windows': 0.19; 'versions': 0.20; 'trying': 0.21; '2.x': 0.22; '3.x': 0.22; 'stick': 0.22; 'installed': 0.23; 'allows': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:# 10': 0.27; 'header:X -Complaints-To:1': 0.28; 'decide': 0.28; 'run': 0.28; 'asks': 0.29; 'fedora': 0.29; 'install': 0.29; 'url:python': 0.32; 'file': 0.32; 'from:addr:yahoo.co.uk': 0.32; 'mac': 0.32; 'switch': 0.32; 'to:addr:python-list': 0.33; 'pm,': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'sure': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'release': 0.39; 'easily': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'most': 0.61; 'matter': 0.61; 'latest': 0.61; 'situation': 0.62; 'between': 0.63; 'series': 0.63; 'different': 0.63; 'more': 0.63; 'hoping': 0.72; 'coexist': 0.84; 'confusing': 0.84; 'distinguish': 0.84; 'oss': 0.84; 'end-user': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Coexistence of Python 2.x and 3.x on same OS Date: Fri, 05 Oct 2012 13:29:13 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-122-166.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: X-Antivirus: avast! (VPS 121005-1, 05/10/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349440159 news.xs4all.nl 6978 [2001:888:2000:d::a6]:38644 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30810 On 05/10/2012 13:15, Edward Diener wrote: > On 10/1/2012 12:02 PM, Alister wrote: >> On Sun, 30 Sep 2012 15:14:17 -0400, Edward Diener wrote: >> >>> Has there been any official software that allows both the Python 2.x and >>> 3.x releases to coexist on the same OS so that the end-user can easily >>> switch between them when invoking Python scripts after each has been >>> installed to their own directories/folders ? >>> >>> I know of some unoffical solutions, but they require lots of tweaks. >>> Given the vagaries of the different OSs on which Python can run I am >>> hoping for some offical solution which will work on any of the most >>> popular OSs ( Windows, Linux, Mac ). >>> >>> The situation is so confusing on Windows, where the file associations, >>> registry entries, and other internal software which allows a given >>> Python release to work properly when invoking Python is so complicated, >>> that I have given up on trying to install more than one Python release >>> and finding a relaible, foolproof way of switching between them. So >>> although I would like to use the latest 3.x series on Windows I have >>> decide to stick with the latest 2.x series instead because much software >>> using Python does not support 3.x yet. >> >> on my fedora system it was a simple matter of:- >> #> yum install python3 >> >> to use python 3 i specify it in my shebang line >> >> #!/usr/bun/env python3 >> >> Simple >> >> Not sure about Windoze though (Although from memory the install asks >> where to install so should not be a major issue) > > Windows installs of Python do not distinguish releases by Pythonx(.x) > but just install different versions of Python in different directories. > However one can make links to the different versions based on their > release numbers, and that would allow a shebang line work if it was > supported. > > Please read this http://www.python.org/dev/peps/pep-0397/ and let us know whether or not it fits your needs on Windows. -- Cheers. Mark Lawrence.