How can I use both Anaconda versions (2.7 & 3.5)?

前端 未结 3 1907
失恋的感觉
失恋的感觉 2021-01-31 11:56

I was using the Anaconda 3.5 distro in a Windows 10 machine. Due to dependencies in libraries that I want to work with, I had to have the 2.7 version i

3条回答
  •  感动是毒
    2021-01-31 12:21

    The best way to use both Python 2.7x and Python 3.5x together is Jupyter Notebook.

    http://jupyter.org/

    You will be able to work on your browser with IPython Notebook style interface which is great for working with scripting languages.

    I found some of these videos on YouTube very informative:

    1) https://www.youtube.com/watch?v=HW29067qVWk

    2) https://www.youtube.com/watch?v=e9cSF3eVQv0

    Besides Python 2.7 and 3.5, there are a bunch of other languages that you will be able run with your Jupyter Notebook. The various Kernels are available in this link below:

    https://github.com/jupyter/jupyter/wiki/Jupyter-kernels

    After installation, as you start your Jupyter Notebook, your browser will open up a new page showing your Home Directory. Among the 4 tabs (Files|Running|Clusters|Conda):

    1) The Files tab shows all the files in your Home Directory.

    2) Running tab shows all the Notebooks that are running.

    3) Clusters tab is provided by IPython parallel.

    4) Conda tab is where you need to add the Python version 3.5 (and other languages if needed) to your Jupyter Notebook (If Python 2.7 is default).

    If you are interested to try C++ with your Jupyter Notebook, there are a couple of Kernels available.

    1) JupyRoot - https://github.com/root-mirror/root/tree/master/bindings/pyroot/JupyROOT

    2) Cling - https://github.com/root-mirror/cling

提交回复
热议问题