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 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: References: X-Original-To: Bastian Venthur X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Jul 18 12:09:13 2018 Old-Return-Path: 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: archive/latest/16125 List-ID: List-URL: 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 X-Original-Date: Wed, 18 Jul 2018 12:53:17 +0100 X-Original-Message-ID: X-Original-References: X-Original-Sender: dimitri.ledkov@surgut.co.uk Xref: csiph.com linux.debian.maint.python:10706 On 16 July 2018 at 08:44, Bastian Venthur 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.