文章目录
概要
概要:本篇文章主要介绍了在本人在Windows系统下安装jupyter notebook的流程及操作步骤,小伙伴们也可以通过Anaconda安装,所有步骤均为实际操作。
例如:
openAI 的 GPT 大模型的发展历程。
操作步骤
一、安装Python
Python官网链接:链接: https://www.python.org/downloads/windows/
选择合适的Python版本,进行下载安装。
二、运行Python
在Python运行环境中测试Python是否运行成功。
退出Python运行环境,检查pip是否安装成功。
三、安装jupyter notebook
下面是安装jupyter notebook的 具体代码
,如下图所示。
安装过程中可能需要更新pip,更新完成之后再安装jupuyter notebook,按照如下代码安装即可:
python -m pip install --upgrade pip
安装方式一:
pip install notebook
安装方式二:
pip install [包名] -i [pip源URL]
# 示例
pip install pytest -i https://pypi.tuna.tsinghua.edu.cn/simple
# 或
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pytest
# 或
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 安装限定版本
pip install numpy==1.18.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/
# 安装jupyter notebook(速度最快)
pip install notebook-i https://pypi.tuna.tsinghua.edu.cn/simple
其他镜像(备用)
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple
华中理工大学:http://pypi.hustunique.com
山东理工大学:http://pypi.sdutlinux.org
豆瓣:http://pypi.douban.com/simple
操作过程中的报错信息一:
应信任该镜像源,例如:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
四、运行jupyter notebook
下面展示一些 内联代码片
。
jupyter notebook
五、其他设置
1.设置jupyter notebook启动路径
1.查看“jupyter notebook --generate-config”具体路径
2.修改具体启动路径。(按照代码搜索即可)
## The directory to use for notebooks and kernels.
# Default: ''
c.ServerApp.root_dir = 'E:\RISK'