赞
踩
目录
安装时保持software updater设置如下
- sudo apt-get install libffi-dev
- sudo apt install python3-pip
- pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter
- pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyterlab
- sudo apt install jupyter-core
WARNING: The scripts ... are installed in /home/.../.local/bin which is not on PATH.
- pip uninstall -y jupyter
- pip uninstall -y jupyter_core
- pip uninstall -y jupyter-client
- pip uninstall -y jupyter-console
- pip uninstall -y notebook
- pip uninstall -y qtconsole
- pip uninstall -y nbconvert
- pip uninstall -y nbformat
jupyter notebook --generate-config
- ipython
-
- from notebook.auth import passwd
- passwd()
- exit()
ipython与标准python的最大区别在于,Ipython会对命令提示符的每一行进行编号。
nano ~/.jupyter/jupyter_notebook_config.py
在最后添加以下内容
- c.NotebookApp.ip = '0.0.0.0'
- c.NotebookApp.open_browser = False
- c.NotebookApp.password = 'argon2:************"
- c.NotebookApp.port = 8888
password就是上一步中的out2,如下,然后保存
- sudo apt install nodejs npm
- pip install nodejs
- jupyter labextension install @jupyter-widgets/jupyterlab-manager
遇到报错,所以下载nodejs(方法2):Ubuntu安装最新版本NodeJs和Npm的方法_ubuntu安装最新nodejs_小旺仔1024的博客-CSDN博客
- (Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.
-
- Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages
- An error occurred.
- ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.
- See the log file for details: /tmp/jupyterlab-debug-0w81w6d5.log
然后成功安装
输入jupyter lab启动
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。