Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<< WAIT >>


devel / comp.lang.python / Re: Python not showing correct version

SubjectAuthor
o Re: Python not showing correct versionBarry Scott

1
Re: Python not showing correct version

<mailman.2494.1680343705.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22730&group=comp.lang.python#22730

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry Scott)
Newsgroups: comp.lang.python
Subject: Re: Python not showing correct version
Date: Sat, 1 Apr 2023 10:52:53 +0100
Lines: 28
Message-ID: <mailman.2494.1680343705.20444.python-list@python.org>
References: <CANvxP8M8nPBCm2cehEG1UahP=SoOHiZYpazY_pmXhtUWsOYS6g@mail.gmail.com>
<CANvxP8M89NK+QY2YodnjZmojUMFOnwVSVT27mLgKh-jXgv4AMw@mail.gmail.com>
<D26A4D1C-EF05-4C9D-9E52-8DD3148FCA4F@barrys-emacs.org>
<CANvxP8PNFGFx7x7nSH-DyrCD+1F7=fH-aGjMPm1uPWnqFY7J4g@mail.gmail.com>
<CACL+1avZZxOQMJ78QNMFZJCKgNEHMBkUxfuyA0f+PW7g-7-kkg@mail.gmail.com>
<34dcfb4d-28ed-0d26-8816-826fd63c1848@tompassin.net>
<CACL+1avoH4YT6eTH4bpSPPKpAK7X2ciX+FpQ_PR-6sU_Py4+fg@mail.gmail.com>
<4F251711-2F64-4B29-8E23-16E792C23009@barrys-emacs.org>
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\))
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de vpMphhveuZVSEieXXCBkHwkXVE3VLEofQJqad90rCBCw==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '3.8': 0.05; 'mar': 0.07;
'cc:addr:python-list': 0.09; 'from:addr:barry': 0.09;
'received:217.70': 0.09; 'received:217.70.178': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:not': 0.09; 'subject:version': 0.09; 'versions,': 0.09;
'subject:Python': 0.12; 'url:mailman': 0.15; '3.10': 0.16;
'barry': 0.16; 'cc:name:python list': 0.16; 'default.': 0.16;
'eryk': 0.16; 'from:addr:barrys-emacs.org': 0.16; 'from:name:barry
scott': 0.16; 'message-id:@barrys-emacs.org': 0.16;
'subject:showing': 0.16; 'wrote:': 0.16; 'python': 0.16;
'probably': 0.17; 'uses': 0.19; 'cc:addr:python.org': 0.20;
'install': 0.23; 'installed': 0.23; 'run': 0.23; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
'environment': 0.29; 'default': 0.31; 'url-ip:188/8': 0.31;
'windows': 0.34; 'header:In-Reply-To:1': 0.34; 'runs': 0.35;
'put': 0.38; 'added': 0.39; 'adding': 0.39; 'case.': 0.40;
'including': 0.60; 'to:none': 0.60; 'less': 0.65; 'received:217':
0.67; 'skip:% 30': 0.84; 'flexible': 0.91; 'highest': 0.97
In-Reply-To: <CACL+1avoH4YT6eTH4bpSPPKpAK7X2ciX+FpQ_PR-6sU_Py4+fg@mail.gmail.com>
X-Mailer: Apple Mail (2.3731.500.231)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <https://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>
X-Mailman-Original-Message-ID: <4F251711-2F64-4B29-8E23-16E792C23009@barrys-emacs.org>
X-Mailman-Original-References: <CANvxP8M8nPBCm2cehEG1UahP=SoOHiZYpazY_pmXhtUWsOYS6g@mail.gmail.com>
<CANvxP8M89NK+QY2YodnjZmojUMFOnwVSVT27mLgKh-jXgv4AMw@mail.gmail.com>
<D26A4D1C-EF05-4C9D-9E52-8DD3148FCA4F@barrys-emacs.org>
<CANvxP8PNFGFx7x7nSH-DyrCD+1F7=fH-aGjMPm1uPWnqFY7J4g@mail.gmail.com>
<CACL+1avZZxOQMJ78QNMFZJCKgNEHMBkUxfuyA0f+PW7g-7-kkg@mail.gmail.com>
<34dcfb4d-28ed-0d26-8816-826fd63c1848@tompassin.net>
<CACL+1avoH4YT6eTH4bpSPPKpAK7X2ciX+FpQ_PR-6sU_Py4+fg@mail.gmail.com>
 by: Barry Scott - Sat, 1 Apr 2023 09:52 UTC

> On 31 Mar 2023, at 22:02, Eryk Sun <eryksun@gmail.com> wrote:
>
>
> The OP installed the standard Python 3.8 distribution, which does
> install the launcher by default. The launcher can run all installed
> versions, including store app installations. By default it runs the
> highest available version, which will probably be the 3.10 store app
> in the OP's case. To make 3.8 the default without having to remove
> 3.10, set the environment variables "PY_PYTHON=3.8" and
> "PY_PYTHON3=3.8" in the user environment.

I find user environment on windows to be less flexible to work with then
adding a py.ini. On my Windows 11 I added %userprofile%\AppData\Local\py.ini.
To make python 3.8 the default that py.exe uses put this in py.ini:

[defaults]
python=3.8-64
python3=3.8-64

Barry

> --
> https://mail.python.org/mailman/listinfo/python-list
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor