- 下载python
python 官网下载位置https://www.python.org/downloads/windows/
我这里选择的是python-3.6.8-amd64.exe
![](https://img.haomeiwen.com/i15100194/831136afd286628a.png)
-
安装python
选择自定义安装,可以修改安装位置,我的安装位置是D:\soft\python
记得把 add Python 3.8 to PATH勾选上
安装成功后,打开cmd,输入python成功进入python环境就是安装成功了。 -
升级pip
pip install --user --upgrade pip
![](https://img.haomeiwen.com/i15100194/31dd26606bbd6b15.png)
- 安装jupyter
切换到安装目录下的Scripts文件夹
pip install jupyter
![](https://img.haomeiwen.com/i15100194/8ec799b2f20039d0.png)
如果失败了,重新执行安装命令
pip install jupyter
![](https://img.haomeiwen.com/i15100194/b5c7f92382db40ce.png)
- 启动jupyter
在安装目录的Scripts文件夹下
jupyter notebook
![](https://img.haomeiwen.com/i15100194/561f3ac876664913.png)
启动成功,会自动打开浏览器
以下步骤为修改jupyter 工作空间(可忽略)
- 生成jupyter notebook 配置文件
jupyter notebook --generate-config
![](https://img.haomeiwen.com/i15100194/62823d6e53858170.png)
-
找到配置的文件
配置文件位置
- 修改文件
c.NotebookApp.notebook_dir = ''
# 找到这一行后,将前面的# 去掉,在单引号中添加自己的工作空间
# 重新启动jupyter,配置生效
![](https://img.haomeiwen.com/i15100194/9cbf37765b790b43.png)
网友评论