| View previous topic :: View next topic |
| Author |
Message |
twobit n00b

Joined: 22 Jul 2011 Posts: 50
|
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 Advocate


Joined: 02 May 2003 Posts: 3677
|
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 Veteran


Joined: 23 May 2008 Posts: 1379 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 _________________ Asus m5a99fx, Phenom II X6 - X64-multilib, glibc-2.15-r3, 3.9.1-zen
xorg-server-1.14 - lxde - nouveau
wine-1.5.30, oss4
gcc-4.7.3 CFLAGS="-march=native -O2 -floop-interchange -floop-strip-mine -floop-block -pipe" |
|
| Back to top |
|
 |
|