Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

Installing newer Python


kundor

Question

I noticed that ebuilds for Python 3.8, 3.9, and 3.10 showed up in portage.

This seems exciting, because I've been chafing with missing some of the more recent features of Python for a while now!

They don't get installed by default, though, I assume because they are masked or something like that.

Can someone explain what I need to do to get Python 3.10 installed? Adding something to package.unmask, or setting a PYTHON_TARGET or PYTHON_SINGLE_TARGET variable in make.conf, or anything like that? I understand if I'm doing this at my own risk.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Well, I tried, but didn't make it.

I added 

=dev-lang/python-3.9.13

to /etc/portage/package.unmask, so that it could be installed, and I added 

PYTHON_TARGETS="python2_7 python3_9"

to /etc/portage/make.conf. (I also tried adding a line PYTHON_SINGLE_TARGET="python3_9" to make.conf, but that seemed to cause more problems, so I got rid of that.)

I also had several packages in /etc/portage/package.use with flags like "PYTHON_TARGETS: -* python3_7", so I changed all of those to python3_9.

After that, trying to do an "emerge -auDN @world" gave me pages of errors, so I gave up.

 

 

python_merge_err

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...