1、简介
pip:Python的包管理工具,安装Python的同时已经安装好的了
jupyter notebook :一个交互式笔记本,支持运行 40 多种编程语言。 利用她来写 Python,代码和运行结果都可以保存下载,十分方便。数据挖掘领域中最热门的比赛 Kaggle 里的资料都是Jupyter 格式
2、安装准备
建议安装firefox,chrome浏览器
需要先搭建好Python的开发环境,可以使用python命令行查看python安装目录:
>>> import sys
>>> path = sys.executable
>>> print(path)


3、安装可能出现的问题
1)需要升级pip
升级命令:python -m pip install --upgrade pip

4、启动Jupyter
命令行窗口输入: jupyter notebook

5、登录与密码设置
第一次启动时,会要求输入密码,但其实密码是需要在启动前就配置好的
连接服务器,执行jupyter notebook --generate-config 来生成配置文件

设置密码:jupyter notebook password

6、进入主界面

7、更换默认的工作目录
参考设置用户密码的步骤,生成jupyter_notebook_config配置文件,并打开
搜索关键字‘notebook_dir’


网友评论