1、安装python
2、pip install jupyter
会有报错
可能是无法访问国外的服务器导致的,可以使用国内的镜像
- 清华大学镜像:https://pypi.tuna.tsinghua.edu.cn/simple/
- 阿里云:https://mirrors.aliyun.com/pypi/simple/
- 中科大镜像:https://pypi.mirrors.ustc.edu.cn/simple/
- 豆瓣镜像:https://pypi.douban.com/simple/
- 中科大镜像2:https://pypi.mirrors.ustc.edu.cn/simple/
命令:
pip install requests -i https://mirrors.aliyun.com/pypi/simple/
即使切换了镜像我这块还是报错,使用命令
pip3 install --user jupyter -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
安装完毕
安装完成了,但是没有启动成功,这是因为没有配置环境变量
在用户变量path中添加python的scripts目录
在系统变量path中添加scripts目录
保存。
执行命令:
还是不行,查看安装完jupyter后的提示:
发现需要将C:\Users\16506\AppData\Roaming\Python\Python311\Scripts这个目录添加到python,
添加以后输入 jupyter notenook,启动成功: