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


Groups > linux.debian.maint.python > #10706

Re: Safest way to set python3 as default for `python`

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Dimitri John Ledkov <xnox@ubuntu.com>
Newsgroups linux.debian.maint.python
Subject Re: Safest way to set python3 as default for `python`
Date Wed, 18 Jul 2018 14:10:02 +0200
Message-ID <wcTrk-5ja-9@gated-at.bofh.it> (permalink)
References <wc6qC-10o-9@gated-at.bofh.it>
X-Original-To Bastian Venthur <venthur@debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Jul 18 12:09:13 2018
Old-Return-Path <dimitri.ledkov@surgut.co.uk>
X-Amavis-Spam-Status No, score=-1.75 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .surgut. - helo: .mail-yw0-x22e.google. - helo-domain: .google.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=surgut.co.uk; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=uZK+QAjiTagOiBQOe84RlqjIO5rfMrD/ZDwZWpdba4Q=; b=GMdJYw94X1l/9B2oCJnt6g2wjqYDON1fbxfLKz+U0teiENY2BEqv4dQsqiaSlph366 AoDbXvlD+GSw2pRZ54+KW/efQRQIBconUQIFlfAxqFtCm38oAsD9xCF80VrrkQtyTsCW K4gYr0xnifec3U/o5m0T7uEO39vRmvWywWBP0=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=uZK+QAjiTagOiBQOe84RlqjIO5rfMrD/ZDwZWpdba4Q=; b=UYg2xRFKEjWJS4spsZIk40aQEicGxVWXaa/djaJPiVEXJUhK864XT+omQHY3h6nvqJ L0oys12VCQe9wWy/Ht5cDQP/NdzluRpn2fYxrle5zyxH1yITPPWzUmg7Ta4T1Cekn1wD lfkI5BHRT91Tc9tlbyZtg2E2x/UeHbAi9Mrd4lLI4XXiWGvfrMoFORNDPEUDtvRYdqZe h6+G/jjcphBJhehCWKIBPYh4W2bogM3XmW3+Zu95CFMw+rxzdSxoL7CXnigOjLnDHT2n 7KovxNXXOybf/dP/m5kXMCHrKKKliOihkjT7rhQ9PIvmzpXik6FScLD9EtfdpuhpYMf4 R8fg==
X-Gm-Message-State AOUpUlEIHsPUEkfqYJWjT2+z8Cx3sGISi481gzuf2uYX2CAp3lA8yF9h VfzoTxv8b/v9DJnWxroLMz0JcMQkM6FYwsLUl8DNmEf8
X-Google-SMTP-Source AAOMgpfOl+yREXXBrl9UfiNxM0jK2ARPamrpo/QOP9q+DjA18hPrN9smyQMPHu+0sIvwoMrgtgzJlWdrsd0lbFXKpT8=
X-Received by 2002:a81:59c6:: with SMTP id n189-v6mr2827774ywb.30.1531914798688; Wed, 18 Jul 2018 04:53:18 -0700 (PDT)
MIME-Version 1.0
Sender robomod@news.nic.it
X-Originating-IP [82.129.92.201]
X-Google-Sender-Auth jBstfNc5HIk_Xoe6fMjqKcvg-H8
Content-Type text/plain; charset="UTF-8"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16125
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CANBHLUjm4PBvmThMHZ3JKFZcO2OR4VYqCraU7QP=TyY4wpOwhw@mail.gmail.com
Approved robomod@news.nic.it
Lines 22
Organization linux.* mail to news gateway
X-Original-Cc debian-python <debian-python@lists.debian.org>
X-Original-Date Wed, 18 Jul 2018 12:53:17 +0100
X-Original-Message-ID <CANBHLUjm4PBvmThMHZ3JKFZcO2OR4VYqCraU7QP=TyY4wpOwhw@mail.gmail.com>
X-Original-References <pihi7t$i3f$1@blaine.gmane.org>
X-Original-Sender dimitri.ledkov@surgut.co.uk
Xref csiph.com linux.debian.maint.python:10706

Show key headers only | View raw


On 16 July 2018 at 08:44, Bastian Venthur <venthur@debian.org> wrote:
> Hi,
>
> sorry if this question has been asked before. What is the currently
> recommended way to make `python` point to `python3`? I'd like to have it set
> on a system default level if possible.
>

To answer your question.

Create a brand new virtualenv, enter said virtualenv, make python
point at whatever you want. Use said virtualenv for one thing / one
service / strongly coupled things only.
Create as many virtualenvs as needed.

Above is safe to do, and should not conflict with system python /
system packages / OS.

-- 
Regards,

Dimitri.

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Safest way to set python3 as default for `python` Bastian Venthur <venthur@debian.org> - 2018-07-16 09:50 +0200
  Re: Safest way to set python3 as default for `python` Matthias Klose <doko@debian.org> - 2018-07-16 13:30 +0200
    Re: Safest way to set python3 as default for `python` Bastian Venthur <venthur@debian.org> - 2018-07-16 17:20 +0200
  Re: Safest way to set python3 as default for `python` Ben Finney <bignose@debian.org> - 2018-07-18 03:40 +0200
    Re: Safest way to set python3 as default for `python` Stuart Prescott <stuart@debian.org> - 2018-07-18 11:10 +0200
      Re: Safest way to set python3 as default for `python` Brian May <bam@debian.org> - 2018-07-19 09:30 +0200
  Re: Safest way to set python3 as default for `python` Dimitri John Ledkov <xnox@ubuntu.com> - 2018-07-18 14:10 +0200

csiph-web