Dear all Thanks for your reply. I ran the commands in a notebook cell and get :
/usr/local/anaconda3/bin/python3 ['', '/usr/local/anaconda3/lib/python35.zip', '/usr/local/anaconda3/lib/python3.5', '/usr/local/anaconda3/lib/python3.5/plat-linux', '/usr/local/anaconda3/lib/python3.5/lib-dynload', '/usr/local/anaconda3/lib/python3.5/site-packages', '/usr/local/anaconda3/lib/python3.5/site-packages/Sphinx-1.4.1-py3.5.egg', '/usr/local/anaconda3/lib/python3.5/site-packages/setuptools-23.0.0-py3.5.egg', '/usr/local/anaconda3/lib/python3.5/site-packages/IPython/extensions', '/home/ludoF/.ipython'] when I launch jupyterhub as a service, a ps command get me this output : /usr/local/anaconda3/bin/python3.5 /usr/local/bin/jupyterhub --no-ssl -- config=/etc/jupyterhub/jupyterhub_config.py After getting into a notebook for a specific user, I get this output from a ps command: /usr/local/anaconda3/bin/python3.5 /usr/local/bin/jupyterhub --no-ssl -- config=/etc/jupyterhub/jupyterhub_config.py /usr/local/bin/python3.5 /usr/local/bin/jupyterhub-singleuser --user=ludo -- port=35952 --cookie-name=jupyter-hub-token-ludo --base-url=/user/ludo --hub- host= --hub-prefix=/hub/ --hub-api-url=http://127.0.0.1:8081/hub/api --ip=127.0.0.1 --notebook-dir=~ As you might notice, python executables are not identical whether root or a simple users are launching. Is it what your are referring to when it is said : > it's not installed in the right Python distributions, or the version > installed on the kernel mismatches the ones installed in the Python distro > that the server uses. The two must match. all the best. Le jeudi 11 août 2016 15:18:40 UTC+2, takowl a écrit : > > On 11 August 2016 at 11:13, Ludovic Ferrer <[email protected] > <javascript:>> wrote: > >> I am facing the same issue. I would like to clarify some terminologies. >> what do you mean by "the python version that the kernel launches" ? how >> could I get this information ? > > > Inside a kernel, use 'sys.executable' to see which Python it's running, > and 'sys.path' to see where it imports from. > > If you're installing with pip, you can install into a specific version of > Python using the path you get from sys.executable, as in: > > path/to/python -m pip install ... > -- 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/dc9a0436-b4b2-45e6-be10-57c7afa0b872%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
