I’m still learning, so complete noob here basically. I’m trying to install some python scripts for qtile, and the issue I seem to be having (according to the dev) is that the default version of Python on my OpenSuse TW install (which was installed less than 2 weeks ago), is still 2.7.x.
Or at least it seems to be. I can get to python 3.11.x just fine in an environment as well.
My question is this: how do I find out which is default on the system? And if it is still python 2.x, how do I change that?
Python 3.x is invoked as python3
. python
refers to Python < 3.x only.
$ cnf python2
The program 'python2' can be found in the following package:
* python-base [ path: /usr/bin/python2, repository: zypp (repo-oss) ]
Try installing with:
sudo zypper install python-base
$ cnf python3
Program 'python3' is present in package 'python311-base', which is installed on your system.
Absolute path to 'python3' is '/usr/bin/python3'. Please check your $PATH variable to see whether it contains the mentioned path.
If you don’t need python 2.x, remove python-base
.