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: 6484
|
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 Advocate


Joined: 23 May 2008 Posts: 2799 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, FX 8320 - amd64-multilib, 4.11.7-zen, glibc-2.21, gcc-4.9.4, eudev
xorg-server-1.19.5 w/mesa-17.2.8, openbox, nouveau and radeon, oss4(2017) |
|
Back to top |
|
 |
|
|
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
|
|