user@host:~/devel
$ ~/LOCAL?3.12.0rc2/bin/python3 -m venv xxx
bash: /home/user/LOCAL?3.12.0rc2/bin/python3: No such file or directory user@host:~/devel
$ ~/LOCAL/3.12.0rc2/bin/python3 -m venv xxx
user@host:~/devel
$ xxx/bin/python -c'import sys;print(sys.version)'
3.12.0rc2 (main, Sep 9 2023, 17:53:34) [GCC 13.2.1 20230801] user@host:~/devel
$ cat xxx/pyvenv.cfg
home = /home/user/LOCAL/3.12.0rc2/bin
include-system-site-packages = false
version = 3.12.0
executable = /home/user/LOCAL/3.12.0rc2/bin/python3.12
command = /home/user/LOCAL/3.12.0rc2/bin/python3 -m venv /home/robin/devel/xxx
user@host:~/devel
$ ~/LOCAL/3.12.0rc3/bin/python3 -m venv --upgrade xxx
user@host:~/devel
$ xxx/bin/python -c'import sys;print(sys.version)'
3.12.0rc2 (main, Sep 9 2023, 17:53:34) [GCC 13.2.1 20230801] user@host:~/devel
$ cat xxx/pyvenv.cfg
home = /home/user/LOCAL/3.12.0rc3/bin
include-system-site-packages = false
version = 3.12.0
executable = /home/user/LOCAL/3.12.0rc3/bin/python3.12
command = /home/user/LOCAL/3.12.0rc3/bin/python3 -m venv --upgrade /home/robin/devel/xxx
user@host:~/devel
$ # check versions > user@host:~/devel
$ ~/LOCAL/3.12.0rc2/bin/python3 -c'import sys;print(sys.version)'
3.12.0rc2 (main, Sep 9 2023, 17:53:34) [GCC 13.2.1 20230801] > user@host:~/devel
$ ~/LOCAL/3.12.0rc3/bin/python3 -c'import sys;print(sys.version)'
3.12.0rc3 (main, Sep 27 2023, 09:35:10) [GCC 13.2.1 20230801] user@host:~/devel
$
On 27 Sep 2023, at 12:50, Robin Becker via Python-list <python-list@python.org> wrote:
Attempting venv upgrade 3.12.0rc2 --> 3.12.0rc3 I find pyvenv.cfg changes, but the virtual python doesn't.
I guess this ought to be a bug.
On 27 Sep 2023, at 12:50, Robin Becker via Python-list <python-list@python.org> wrote:
Attempting venv upgrade 3.12.0rc2 --> 3.12.0rc3 I find pyvenv.cfg changes, but the virtual python doesn't.
I guess this ought to be a bug.
You must delete and then recreate the venv if the version of python changes. It is not a bug in python.
Barry
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 01:26:50 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,578 |