1. 程式人生 > >## Ubuntu16.04下Jupyter演算本安裝

## Ubuntu16.04下Jupyter演算本安裝

前言:Jupyter 是一個演算本環境,可在其中執行Python程式碼,並直觀地顯示Python 程式的輸出,類似Mathematica 的效果。

環境:Ubuntu16.04+Python2.7

安裝步驟:

  1. 安裝pip
    這裡只介紹pip,更多方式請參考網站介紹:http://jupyter.org/install。
sudo apt-get install python-pip

由於Ubuntu自帶了Python,所以不需要安裝Python。

  1. 安裝Jupyter

可通過pip安裝Jupyter:

pip install jupyter
  1. 執行Jupyter
jupyter notebook

第一次執行可能不成(我就是這樣……)

[C 15:45:42.277 LabApp] Bad config encountered during initialization:
[C 15:45:42.277 LabApp] Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.

折騰了一番終於解決
在終端執行LANG=zn jupyter lab


(參考Github上面的討論
再次執行jupyter notebook
在這裡插入圖片描述好了,到這裡Jupyter安裝成功。