在采用具有root权限的用户成功安装jupyter,jupyterlab及jupyterhub后新增用户登陆jupyter怎么办?
首先新建系统用户:
sudo useradd -r -m -s /bin/bash xxxxx
sudo passwd xxxx
然后su到该用户下执行:
先修改用户变量:vim .profile,添加:
export PATH=/home/biso/.local/bin:$PATH
然后source生效:source .profile
开始软件安装:
python -m pip install --upgrade pip(很重要)
pip install jupyter
pip install jupyterlab
启动jupyterlab的扩展:
jupyter serverextension enable jupyterlab
最后记得在jupyterhub的控制台页面中addusers中添加新创建的用户:xxxx。
退出系统后,重新采用XXXX即可登陆。