1. jupyter notebook 安装
1.1 安装 jupyter notebook
pip install jupyter
1.2 安装常见问题
1.2.1 “jupyter command not found”
安装完成后再命令行输入jupyter notebook
即可开始使用,mac下可能会显示jupyter command not found
,这是由于pip安装jupyter完成后并没有将其加入到当前运行环境中。
- 先找到 jupyter 安装位置, 通常是在
/Users/yy(your_user_name)/Libraries/Python/2.7/bin
- 将下面命令添加到~/.bash_profile中
export PATH=/Users/yy(your_user_name)/Library/Python/2.7/bin/:$PATH
如果bash_profile文件不存在,再~/目录下,执行touch .bash_profile
命令即可 - 执行
source .bash_profile
1.2.2 出现six相关问题
安装过程中出现以下错误提示:
pkg_resources.ContextualVersionConflict: (six 1.9.0 (/usr/lib/python2.7/site-packages),