View previous topic :: View next topic |
Author |
Message |
user7719 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Feb 2021 Posts: 69
|
Posted: Tue Aug 20, 2024 8:33 am Post subject: Python 3.9 not showing in eselect python list |
|
|
Hi,
I have some python scripts that require Python 3.9.
I have installed it:
Code: | sudo emerge -va python:3.9
* IMPORTANT: 34 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* IMPORTANT: 2 config files in '/etc/portage' need updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 1.43 s (backtrack: 0/20).
[ebuild R ] dev-lang/python-3.9.19_p3:3.9::gentoo USE="bluetooth ensurepip gdbm ncurses readline sqlite ssl -build -debug -examples -pgo -test -tk -valgrind -verify-sig" 0 KiB |
But it isn't selectable:
Code: | sudo eselect python list
Available Python interpreters, in order of preference:
[1] python3.11
[2] python3.12
|
Ideally I'd only want to select it in the terminal I'm using to execute the python scripts.
How can I do this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grknight Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 20 Feb 2015 Posts: 1837
|
Posted: Tue Aug 20, 2024 12:30 pm Post subject: |
|
|
Wrong tool for the task. Instead of trying to manipulate via the, obsolete, eselect python command, just call the scripts with python3.9 directly. Do this either on the command-line or in their bangpath or a wrapper script. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1627 Location: Germany
|
Posted: Tue Aug 20, 2024 1:03 pm Post subject: |
|
|
Quote: | * IMPORTANT: 34 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* IMPORTANT: 2 config files in '/etc/portage' need updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files. |
Please do that to avoid any future or even current problems. _________________ Forum Guidelines
PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|