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
Upvotes
2
u/jhermann_ Sep 27 '18
Avoid those issues, use my project to install everything if you're on a Debian-like platform.
1
u/setting_orange Sep 27 '18
Can you run it without sudo? If so run
which jupyterhubto find out where it is. or rather, you could runThe result of that needs to be in the $PATH environment variable of the user calling it. You can run
sudo echo $PATHto see the root user's PATH. if the result of the dirname command is e.g./usr/local/binthen you want to addPATH=${PATH}:/usr/local/binto the root user's .bash_profile. This file is located at /root/.bash_profile.$PATHis 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?