Raspberry PiにJupyter Notebookをインストール
本家のインストール手順を参考に進める。
Installing Jupyter Notebook — Jupyter Documentation 4.1.1 alpha documentation
Pipでインストール
Raspberry PiにAnacondaをインストールできないのでこっちの手順。
code:shell
$ pip -V
ImportError: cannot import name IncompleteRead
なんか変なエラーが出る。とりあえず/ apt-getで入れたpipを抜いて最新の奴を手動でインストールすると治るみたい。
apt-getで入れたpipがなんかエラー吐くようになった : mwSoft blog
code:shell
$ sudo apt-get purge python-pip
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py
Jupyterのインストール
code:shell
$ sudo pip install --upgrade pip
$ sudo apt-get install build-essential python-dev
$ sudo pip install jupyter
$ sudo apt-get install libpng12-dev libjpeg8-dev libfreetype6-dev libxft-dev liblapack-dev libatlas-base-dev gfortran g++
$ sudo pip install numpy pandas matplotlib seaborn scikit-learn --no-cache-dir
ビルドにいくつか追加のパッケージが必要のようだ(2017/9/10追記)。
Raspberry Pi 3 で jupyter notebook (Python 2.7) を使う
Minicondaでインストール
Pipだとビルドでエラー吐いたのでminicondaも試してみた。
Raspberry piにAnacondaをインストールする – garicchi.com
code:shell
$ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
$ chmod +x Miniconda3-latest-Linux-armv7l.sh
$ ./Miniconda3-latest-Linux-armv7l.sh
$ conda install jupyter
Illegal instruction
Raspberry Piだと動かない?
Raspberry Pi2が必要かもしれないのでPipの手順に戻る。
Jupyterの起動
code:shell
$ jupyter notebook --ip=* --no-browser
--ip=*を指定すると外部から接続できる
jupyter notebook で外部からの接続を許可する - Qiita
#Python #Jupyter