Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"python3.7" missing in "eselect python list"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
qlb1234
n00b
n00b


Joined: 23 Aug 2016
Posts: 7

PostPosted: Thu Jul 12, 2018 3:52 am    Post subject: "python3.7" missing in "eselect python list&q Reply with quote

Hi.
I want to use python3.7 by default but it's still in testing stage so I

Code:
#package.accept_keywords
dev-lang/python ~amd64


so that

Code:
emerge -u python


would install Python 3.7. After the successful emerging, I ran

Code:
eselect python list


but it only shows

Code:
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.5
  [3]   python2.7 (fallback)


I can run

Code:
$ python3.7
Python 3.7.0 (default, Jul 12 2018, 11:40:06)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>


with no problem. But the command "python" still invokes python3.6 by default.

Question: What is going wrong? How can I use python3.7 by default?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Thu Jul 12, 2018 6:05 am    Post subject: Reply with quote

Try to add python3.7 in /etc/python-exec/python-exec.conf.
I'm not sure if the work set action.
eselect python check python version or with command python-exec2c -l (available) or reading /etc/python-exec/python-exec.conf file (preferred)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Thu Jul 12, 2018 6:15 am    Post subject: Reply with quote

You might need to re-emerge eselect-python.

Python3.7 support hasn't been added to any ebuilds yet, so maybe they are just testing that it builds and it's not supposed to be used yet? (Maybe it's not supported yet in Gentoo packages, but works locally)
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Thu Jul 12, 2018 6:17 am    Post subject: Reply with quote

Even though you add 'python3.7' with
Code:
eselect python edit
it shows up as '(uninstalled)' if you check it with
Code:
eselect python list
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Fri May 08, 2020 9:32 pm    Post subject: Reply with quote

I had this same problem just today. I had to update python-exec in addition to the above.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
vovan47
n00b
n00b


Joined: 21 Nov 2018
Posts: 41

PostPosted: Thu Dec 03, 2020 7:57 am    Post subject: Reply with quote

Quote:
root #eselect python cleanup

Does the trick, as it's described in Python wiki page
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum