- 下载python
python 官网下载位置https://www.python.org/downloads/windows/
我这里选择的是python-3.6.8-amd64.exe

-
安装python
选择自定义安装,可以修改安装位置,我的安装位置是D:\soft\python
记得把 add Python 3.8 to PATH勾选上
安装成功后,打开cmd,输入python成功进入python环境就是安装成功了。 -
升级pip
pip install --user --upgrade pip

- 安装jupyter
切换到安装目录下的Scripts文件夹
pip install jupyter

如果失败了,重新执行安装命令
pip install jupyter

- 启动jupyter
在安装目录的Scripts文件夹下
jupyter notebook

启动成功,会自动打开浏览器
以下步骤为修改jupyter 工作空间(可忽略)
- 生成jupyter notebook 配置文件
jupyter notebook --generate-config

-
找到配置的文件
配置文件位置
- 修改文件
c.NotebookApp.notebook_dir = ''
# 找到这一行后,将前面的# 去掉,在单引号中添加自己的工作空间
# 重新启动jupyter,配置生效

网友评论