Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mixing python 2 and 3x
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
twobit
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2011
Posts: 76

PostPosted: Sun Jan 20, 2013 1:52 am    Post subject: Mixing python 2 and 3x Reply with quote

Wondering how i can have python 2x and 3x installed at the same time...

Currently have python 3.2.3 installed, but i have to use python2.7 for the programming environment i need (MCP)
can i have my system running on 3.2.3 and sandbox python2.7? or if it was running alongside how do i tell it which one to use for what programs?

HELP!
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4237

PostPosted: Sun Jan 20, 2013 9:35 am    Post subject: Reply with quote

python is slot, so you will have both install.
use eselect python (see options there) to manage your python version to use as 2 and 3
and you can alter a python program to match /usr/bin/python2 or /usr/bin/python3 instead of /usr/bin/python
and you have python-updater that will help you rebuild programs so they work for python 2 and 3 if possible.

The easy solve for you is forcing default python to be 2.7 as you don't use 3 yet.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2267
Location: Dallas area

PostPosted: Mon Feb 04, 2013 11:12 am    Post subject: Reply with quote

I'm wondering what the state of python 3 is, at least as far as being usable for everything.
I admit I haven't kept up with it over the last year, thus the query.

I only have python 2.7 installed, but I had to mask a few dev-python packages this morning
as they wanted to use a target of 3.2.

So what's up devs?

Thanks
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
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