在linux的anaconda安装好了,接下来发现jupyter打不开。总是无疾而终
于是开始查解决办法。找到一个相关的
动手验证:
(base) root@li-PC:~/anaconda3/bin# jupyter-lab --allow-root
[I 20:50:22.764 LabApp] JupyterLab extension loaded from /root/anaconda3/lib/python3.7/site-packages/jupyterlab
[I 20:50:22.764 LabApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab
[I 20:50:22.766 LabApp] 启动notebooks 在本地路径: /root/anaconda3/bin
[I 20:50:22.766 LabApp] 本程序运行在: http://localhost:8888/?token=112e449f78f680cc0738e9c255e3a45842c5fc95fadd1267
[I 20:50:22.766 LabApp] or http://127.0.0.1:8888/?token=112e449f78f680cc0738e9c255e3a45842c5fc95fadd1267
[I 20:50:22.766 LabApp] 使用control-c停止此服务器并关闭所有内核(两次跳过确认).
[C 20:50:22.823 LabApp]
To access the notebook, open this file in a browser:
file:///root/.local/share/jupyter/runtime/nbserver-12894-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=112e449f78f680cc0738e9c255e3a45842c5fc95fadd1267
浏览器打开: or http://127.0.0.1:8888/?token=112e449f78f680cc0738e9c255e3a45842c5fc95fadd1267
可以打开网页的界面:
还可以设置密码
(base) root@li-PC:~/anaconda3/bin# jupyter notebook --generate-config
Writing default config to: /root/.jupyter/jupyter_notebook_config.py
(base) root@li-PC:~/anaconda3/bin# jupyter notebook password
Enter password:
Verify password:
还是建议不要安装到root目录下,后面改成/home目录就没这么多问题了。