View previous topic :: View next topic |
Author |
Message |
twobit Tux's lil' helper
Joined: 22 Jul 2011 Posts: 76
|
Posted: Sun Jan 20, 2013 1:52 am Post subject: Mixing python 2 and 3x |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Jan 20, 2013 9:35 am Post subject: |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Feb 04, 2013 11:12 am Post subject: |
|
|
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 _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|