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
View all comments
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.