1、打開終端輸入 pip3 install jupyter
如果安裝過程中速度很慢可以使用國內pip鏡像配置:
1.1 pip官方軟件源
官方源 https://pypi.python.org/simple
1.2 常用國內鏡像源
阿里雲 http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 http://pypi.douban.com/simple
中國科學院 http://pypi.mirrors.opencas.cn/simple/
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
1.3 臨時指定軟件源
通常來講,如果想要手動指定臨時軟件源來安裝軟件的話,可是使用如下格式
pip install 需要下載的package -i xx(其中xx是指定的源ip地址)
例如,使用豆瓣源來安裝jieba包
pip install jupyter -i https://pypi.douban.com/simple
當然這里也可以在對應的電腦配置固定鏡像配置文件,這里就不在講述了。
2 、終端輸入 IPython -V,查看當前使用的版本
3、具體使用
進入安裝目錄 我的目錄是 /usr/bin/python
python3 -m IPython notebook