Hi,

Vincent Legoll <[email protected]> skribis:

> I m trying to get python3 & python2 installed for the same user
>
> guix package -i python@2 -i python@3
>
> but that does not look like it will do what I want:
>
> vince@guixsd ~/guix-packages$ guix package -i python@2 python@3
> The following package will be downgraded:
>    python    3.4.3 → 2.7.10
> /gnu/store/7fm1qk703x47qzb9p6xg08cxgb009akz-python-2.7.10
>
> The following package will be upgraded:
>    python    3.4.3 → 3.4.3
> /gnu/store/dsp685maxqc1i6qcib77449g2b6b7qah-python-3.4.3

This is impossible.  A profile can contain at most one package of a
given name.

However, what you can do is create separate profiles:

  guix package -p pytwo -i python@2
  guix package -p pythree -i python@3

… or use ‘guix environment’:

  guix environment --ad-hoc python@2

HTH!

Ludo’.

Reply via email to