Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81651

Re: Issues installing Python 2.7

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'scripts': 0.03; 'startup': 0.05; 'subject:Python': 0.06; 'difference,': 0.09; 'semantic': 0.09; 'subject:2.7': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; '2.7': 0.14; '"python': 0.16; '"python"': 0.16; 'caching': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'happily': 0.16; 'investigate': 0.16; 'python",': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'command': 0.22; '>>>': 0.22; 'putting': 0.22; 'shell': 0.22; 'cc:addr:python.org': 0.22; '2.x': 0.24; 'directory.': 0.24; 'cc:2**0': 0.24; 'login': 0.25; "i've": 0.25; 'compiled': 0.26; 'header:In-Reply-To:1': 0.27; 'skip:p 30': 0.29; 'am,': 0.29; 'absolute': 0.30; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'directory,': 0.31; 'steven': 0.31; 'run': 0.32; 'running': 0.33; 'fri,': 0.33; "i'd": 0.34; 'good.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'performance': 0.37; 'being': 0.38; 'ahead': 0.38; 'nov': 0.38; 'that,': 0.38; 'sure': 0.39; 'break': 0.61; "you're": 0.61; 'making': 0.63; 'email addr:gmail.com': 0.63; 'name': 0.63; 'export': 0.74; 'certain,': 0.84; 'ever.': 0.84; 'absolutely': 0.87; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=bt2ZK8E33qkVGPih3W7t2aJtBF+vAia+7Ohcdqz3rM0=; b=RcQu2qZtxo+dYYTTSM8zMOsfhZGEq9sI4/VIrVzQT4CPXytfRO5owGtqUAsG7/IcOm XwHRe+4omyosjWtG3xcw/OvSZVyzV5mIX/guIp6Luob1vZbRzPLNED0MxxWg+rcPsRK1 0+yPD/DjQ2o0FdA1sq2KdgCm/qN95+V6zp10GARzGCIoY3dEpZOiGjGubQYQ1mZDHocM RaAngbPvzm63PbvbJFRqq4p2okPvx3SkSsFcNTDxZDHbYXEieeGEDG0Y5IUOkREECPs/ fVR+Mhd9cAlXAkx9ui2g3VgWKcXYmjgQovPGFJRiUr9FJawzW45nRNMdmgIgSUzq26NO 6Qng==
MIME-Version 1.0
X-Received by 10.50.62.104 with SMTP id x8mr23897983igr.2.1417128051859; Thu, 27 Nov 2014 14:40:51 -0800 (PST)
In-Reply-To <cdoe7a5fhs077qsn7k27g31gg40mh2ov91@4ax.com>
References <2680a96a-f5a9-44d8-b4b1-6e0ca32a53ed@googlegroups.com> <547675f7$0$12982$c3e8da3$5496439d@news.astraweb.com> <cdoe7a5fhs077qsn7k27g31gg40mh2ov91@4ax.com>
Date Fri, 28 Nov 2014 09:40:51 +1100
Subject Re: Issues installing Python 2.7
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16382.1417128061.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1417128061 news.xs4all.nl 2891 [2001:888:2000:d::a6]:51328
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81651

Show key headers only | View raw


On Fri, Nov 28, 2014 at 4:40 AM, Dennis Lee Bieber
<wlfraed@ix.netcom.com> wrote:
> On Thu, 27 Nov 2014 11:53:10 +1100, Steven D'Aprano
> <steve+comp.lang.python@pearwood.info> declaimed the following:
>
>>billyfurlong@gmail.com wrote:
>
>>
>>> Add this to the bashrc
>>> export PATH=$PATH:/opt/python2.7/bin/
>>
>>I'm not so sure about that, but I don't have time to investigate right now.
>>
>         If this is for the user login (and where it won't conflict with the
> system startup processes) I'd have swapped the $PATH and /opt... order --
> putting the 2.7 bin directory ahead of the system bin directory.

I wouldn't. Do you know, for absolute certain, which programs you run
that end up calling on Python, perhaps via "#!/usr/bin/env python", or
perhaps by being shell scripts and running "python my_main_module.py",
or something? You'd break those. Unless, of course, you're making
absolutely sure there's no "python" command in the /opt/... directory,
in which case the PATH order won't have any semantic difference, and
directory caching will make sure there's virtually no performance
difference, so the current form is just as good.

That said, I have never compiled a Python 2, ever. I've always
compiled Py3, and let that happily take over the name "python3",
leaving the system Python 2.x on the name "python" and "python2".

ChrisA

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Issues installing Python 2.7 billyfurlong@gmail.com - 2014-11-26 09:09 -0800
  Re: Issues installing Python 2.7 Chris Angelico <rosuav@gmail.com> - 2014-11-27 10:47 +1100
  Re: Issues installing Python 2.7 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-27 11:53 +1100
    Re: Issues installing Python 2.7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-11-27 12:40 -0500
    Re: Issues installing Python 2.7 Chris Angelico <rosuav@gmail.com> - 2014-11-28 09:40 +1100
  Re: Issues installing Python 2.7 Michael Torrie <torriem@gmail.com> - 2014-11-26 21:04 -0700
  Re: Issues installing Python 2.7 Steven D'Aprano <steve@pearwood.info> - 2014-11-27 08:13 +0000
    Re: Issues installing Python 2.7 billyfurlong@gmail.com - 2014-12-01 08:40 -0800
      Re: Issues installing Python 2.7 Chris Angelico <rosuav@gmail.com> - 2014-12-02 03:50 +1100

csiph-web