在已经有python3环境的Linux上安装jupyter notebook
1. 先安装 Python 和 pip大多数 Linux 已自带yum install -y python3 python3-pip2. 安装 Jupyter核心命令pip3 install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple出现了这个报错我就只能手动安装。从这个回显来看还是默认走国内源。pip3 install httplib20.22.0 protobuf4.23.4 pyarrow11.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple3. 生成配置文件必须jupyter notebook --generate-config执行后会告诉你配置文件路径一般是~/.jupyter/jupyter_notebook_config.py4. 设置登录密码重要jupyter notebook password输入你要的密码连续两次。5. 启动 Jupyter Notebook临时启动关闭终端就停jupyter notebook --ip0.0.0.0 --port12003 --no-browser这里12003是我随便写的端口号没被占用就可以。报错信息说不推荐用root用户。jupyter notebook --ip0.0.0.0 --port12003 --no-browser --allow-root我偏要用root也不是不行。6. 在Windows浏览器访问在浏览器上输入上面截图的405行。首次要输入密码。