Re: Project Euclid Problem 26 SOLVED!!!

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Project Euclid Problem 26 SOLVED!!!
De : nospam (at) *nospam* dfs.com (DFS)
Groupes : comp.os.linux.advocacy
Date : 12. Mar 2024, 00:48:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uso1nm$3s289$2@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Betterbird (Windows)
On 3/9/2024 4:21 PM, Lazy Larry wrote:
On 09 Mar 2024 20:55:19 GMT, Stéphane CARPENTIER wrote:
 
>
Don't be too harsh on python. Last time you checked, you had 5, five,
yes FIVE, versions of python on your own computer. For someone who pretend to
master his computer and to hate python, it tells a lot.
>
 That's Gentoo, honey.
 I got 3 but I could have 10, 20, or a billion.
 I can select:
 [~]# eselect python list
Available Python interpreters, in order of preference:
   [1]   python3.11
   [2]   python3.12
   [3]   python2.7
 Python 3.11 is first because that is the current Gentoo
default.  But I can switch between all versions at will
via:
 eselect python [1 | 2 | 3]
 Can you do that with your crippled distro?
Of course
update-alternatives (basically manages symlinks)
https://www.baeldung.com/linux/update-alternatives-command
//current
wsl$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
//install new python
wsl$ sudo apt install python3.11
Setting up python3.11 (3.11.0~rc1-1~22.04) ...
Processing triggers for man-db (2.10.2-1) ...
//add 2 python entries to the update-alternatives app
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.11 2
//choose which python version you want
~$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
   Selection    Path                 Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3.11   2         auto mode
   1            /usr/bin/python3.10   1         manual mode
   2            /usr/bin/python3.11   2         manual mode
Press <enter> to keep the current choice[*], or type selection number:
//new python version is the default
wsl$ python
Python 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0] on linux
You can set and choose from multiple versions of the same program (as above), or multiple programs assigned to the same name (like 5 different apps assigned the name 'editor'.
On Windows you could create a folder of .bat files with names:
editor.bat
image.bat
newsreader.bat
And inside each one list the related executables and REM out the ones you don't want to use for the time being.
editor.bat
REM "C:\Program Files\Notepad++\notepad++.exe" %1
REM "C:\Windows\SysWOW64\notepad.exe" %1
"C:\Program Files\Sublime Text\sublime_text.exe" %1
Add the folder with the .bat files to your path
Then from any location enter
$ editor file.txt
and it will launch the designated app and open the file in it

Date Sujet#  Auteur
9 Mar 24 * Project Euclid Problem 26 SOLVED!!!32Farley Flud
9 Mar 24 +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
9 Mar 24 +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
9 Mar 24 `* Re: Project Euclid Problem 26 SOLVED!!!29Physfitfreak
9 Mar 24  +* Re: Project Euclid Problem 26 SOLVED!!!18Diego Garcia
9 Mar 24  i`* Re: Project Euclid Problem 26 SOLVED!!!17Physfitfreak
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Stéphane CARPENTIER
9 Mar 24  i +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
10 Mar 24  i `* Re: Project Euclid Problem 26 SOLVED!!!12Farley Flud
10 Mar 24  i  `* Re: Project Euclid Problem 26 SOLVED!!!11Physfitfreak
10 Mar 24  i   +- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
11 Mar 24  i   `* Re: Project Euclid Problem 26 SOLVED!!!9Farley Flud
11 Mar 24  i    +* Re: Project Euclid Problem 26 SOLVED!!!2Nuxxie
12 Mar 24  i    i`- Re: Project Euclid Problem 26 SOLVED!!!1DFS
11 Mar 24  i    +* Re: Project Euclid Problem 26 SOLVED!!!2Physfitfreak
11 Mar 24  i    i`- Re: Project Euclid Problem 26 SOLVED!!!1Farley Flud
12 Mar 24  i    `* Re: Project Euclid Problem 26 SOLVED!!!4Nuxxie
12 Mar 24  i     `* Re: Project Euclid Problem 26 SOLVED!!!3Physfitfreak
12 Mar 24  i      `* Re: Project Euclid Problem 26 SOLVED!!!2Farley Flud
13 Mar 24  i       `- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24  `* Re: Project Euclid Problem 26 SOLVED!!!10DFS
9 Mar 24   +* Re: Project Euclid Problem 26 SOLVED!!!8Diego Garcia
9 Mar 24   i+* Re: Project Euclid Problem 26 SOLVED!!!4Stéphane CARPENTIER
9 Mar 24   ii`* Re: Project Euclid Problem 26 SOLVED!!!3Farley Flud
12 Mar 24   ii `* Re: Project Euclid Problem 26 SOLVED!!!2DFS
12 Mar 24   ii  `- Re: Project Euclid Problem 26 SOLVED!!!1candycanearter07
9 Mar 24   i+* Re: Project Euclid Problem 26 SOLVED!!!2DFS
9 Mar 24   ii`- Re: Project Euclid Problem 26 SOLVED!!!1Stéphane CARPENTIER
10 Mar 24   i`- Re: Project Euclid Problem 26 SOLVED!!!1Physfitfreak
9 Mar 24   `- Re: Project Euclid Problem 26 SOLVED!!!1Stéphane CARPENTIER

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal