Is it ok having both Anacondas 2.7 and 3.5 installed in the same time?

前端 未结 6 1616
半阙折子戏
半阙折子戏 2020-12-12 10:25

I am using currently Anaconda with Python 2.7, but I will need to use Python 3.5. Is it ok to have them installed both in the same time? Should I expect some problems?
I

6条回答
  •  無奈伤痛
    2020-12-12 11:06

    Yes you can.

    You don't have to download both Anaconda.

    Only you need to download one of the version of Anaconda and need activate other version of Anaconda python.

    If you have Python 3, you can set up a Python 2 kernel like this;

    python2 -m pip install ipykernel
    
    python2 -m ipykernel install --user
    

    If you have Python 2,

    python3 -m pip install ipykernel
    
    python3 -m ipykernel install --user
    

    Then you will be able to see both version of Python!

    If you are using Anaconda Spyder then you should swap version here:

    If you are using Jupiter then check here:

    Note: If your Jupiter or Anaconda already open after installation you need to restart again. Then you will be able to see.

提交回复
热议问题