From Newsgroup: alt.os.linux.suse
On Tue, 25 Jun 2024 18:09:02 +0000, Uwe Bonnes wrote:
Hello,
leap15.6 is announced to have python3.11. I did the distribution update
for a machine from 15.5 to 15.6. I selected in Yast2 the Python
developement environment. But /usr/bin/python3 is still
/usr/bin/python3.6
How to transistion to 311 without much pain?
Thanks
I've been running a program in Python 3.10 (and earlier versions) in Leap
15.5 using a python virtual environment:
https://docs.python.org/3/library/venv.html
For python 3.11 I'd download the suse python 3.11 packages, using yast,
then set up the venv with
david@localhost:~/projects/python/...> python3.11 -m venv venv
then switch into it with
david@localhost:~/projects/python/...> source venv/bin/activate
(venv) david@localhost:~/projects/python/...>
Within the venv you're using 3.11. Type 'python' to check. You can run pip
to install modules.
Before I adopted that method I tried using 'alternatives' but I found venv easier to control. Once, using alternatives, I managed to change the
default system python version from 3.6: parts of yast stopped working!
--
(Remove any numerics from my email address.)
--- Synchronet 3.21d-Linux NewsLink 1.2