Jump to content
funtoo forums
  • 0
ainsley31415926

1.4 upgrade cant get rid of python 3.6

Question

Upgraded from 1.3 to 1.4, followed each step.

Now python is weird:

 

eselect python update
Switching to python3.7

 eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7

 emerge -C =dev-lang/python-3.6*
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.
 * Not unmerging package dev-lang/python-3.6.8 since there is no valid reason
 * for Portage to unmerge currently used Python interpreter.

 

emerge -pv --depclean =dev-lang/python-3.6*

Calculating dependencies... done!
  dev-lang/python-3.6.8 pulled in by:
    @system requires dev-lang/python


...

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

That can depend on many factors.

Did you set PYTHON_SINGLE_TARGET or PYTHON_TARGETS somewhere?

There are also some programs that still don't have the USE flag for python3_7 or just don't support it yet. But if your 'emerge -pv --depclean =dev-lang/python-3.6* ' output does not show more packages, that should not be the case.

Share this post


Link to post
Share on other sites
  • 0
On 10/22/2019 at 3:41 AM, jhan said:

That can depend on many factors.

Did you set PYTHON_SINGLE_TARGET or PYTHON_TARGETS somewhere?

There are also some programs that still don't have the USE flag for python3_7 or just don't support it yet. But if your 'emerge -pv --depclean =dev-lang/python-3.6* ' output does not show more packages, that should not be the case.

This was the problem that I ran into during my upgrade.  PYTHON_TARGETS was still set in /etc/portage/make.conf so 3.6 was still showing as a dependency.  It made quite a mess.

 

Share this post


Link to post
Share on other sites
  • 0

as noted earlier and by drobbins....

eselect python set python3.7

eselect python cleanup

these steps were in the upgrade guide, someone has edited out the selection of the new default interpreter...eselect python set python3.7

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...