The answer here is substantially the same as the answer I just wrote to your other thread, but there's an extra detail. Jupyter will only pick up the site-packages location for a kernel installed in the same version of Python as Jupyter - in your case, that's the Python 3 kernel. So you need the kernelspec installed in a separate location for it to find the Python 2 kernel.
Thomas On 4 April 2017 at 14:46, <[email protected]> wrote: > Hi, > Could anyone please provide some details on how to resolve the below > issues? > > I have Anaconda 2 and 3 installed. I have also JupyterHub and Jupyter > notebook installed. > > When I run jupyter kernelspec list command, I see the python2 and > python3 kernel picked up from the below location. > > python3 /anaconda3/lib/python3.5/site-packages/ipykernel/resources > python2 /usr/local/share/jupyter/kernels/python2 > > > 1. Could anyone let me know why python2 is picked up from a different > location instead of (/anaconda2/lib/python2.7/site-packages/ipykernel/ > resources)? > > 2. If python2 or python3 location is incorrect, how can I change them? > > > Thanks Much! > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jupyter/219367c4-7996-4e5c-9fe0-1f9167157be0%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/219367c4-7996-4e5c-9fe0-1f9167157be0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qhQbwCbeDiujoJ2vE2eQZ9UYZd%2ByuMuZDR7o2O-QdLZyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
