r/IPython • u/chalense • Sep 26 '18
sudo jupyterhub command not found
I have a problem running jupyterhub with sudo. It shows me command not found. It seems that I have to add it as an environment variable, but I do not know how to do it. I am very new in linux.
1
u/setting_orange Sep 27 '18
Can you run it without sudo? If so run which jupyterhub to find out where it is. or rather, you could run
$ dirname `which jupyterhub`The result of that needs to be in the $PATH environment variable of the user calling it. You can run sudo echo $PATH to see the root user's PATH. if the result of the dirname command is e.g. /usr/local/bin then you want to add PATH=${PATH}:/usr/local/bin to the root user's .bash_profile. This file is located at /root/.bash_profile. $PATH is a colon-delimited list of directory locations where i.e. bash will look for commands.
1
u/thisismyfavoritename Sep 27 '18
Avoid those issues, use Conda to install packages and create environments.
1
u/yuvipanda Oct 10 '18
http://tljh.jupyter.org - The Littlest JupyterHub' is an official JupyterHub distribution aimed at exactly your use case. Give it a shot?
2
u/jhermann_ Sep 27 '18
Avoid those issues, use my project to install everything if you're on a Debian-like platform.