一、在windows安装
先查有没有装python环境
cmd -> 输入python --version
不存在就安装
Python Releases for Windows | Python.orghttps://www.python.org/downloads/windows/
自定义,其他默认
安装成功!
在Windows系统下,进行以下步骤:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
在Linux或macOS上,你可以通过编辑.bashrc或.bash_profile文件来设置环境变量:
打开终端,输入以下命令:
echo 'export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple' >> ~/.bashrc
然后使修改生效:
source ~/.bashrc
安装jupyter notebook
pip install jupyter notebook
执行完成即安装成功!
jupyter notebook
启动成功后,浏览器会展示一个页面。
创建配置文件
jupyter lab --generate-config
生成一个文件C:\Users\Administrator\.jupyter\jupyter_lab_config.py
再最后一行添加c.ServerApp.root_dir配置
重新启动就是一个空文件夹
new一个文件
成功运行hello world
搞定!