[Python] Python version does not change when creating conda environment with different python...

Discussão em 'Python' iniciado por Stack, Janeiro 30, 2025.

  1. Stack

    Stack Membro Participativo

    I currently have python3 set as my default python version but I'd like to be able to switch back to python2 for certain things so I created a conda environment with the following command:

    conda create -n py2 python=2.7


    and then activated it with:

    source activate py2


    but when I do:

    python --version


    I still get


    Python 3.6.8
    ​

    What am I doing wrong here? I'm trying to download a conda package this is only python2 compatible but despite being in a python2 environment, it keeps telling me my python version is incompatible.

    Continue reading...

Compartilhe esta Página