5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

自分で libzmq をコンパイルして Bash on Ubuntu on Windows で Jupyter Notebook を使う

Last updated at Posted at 2016-11-28

Bash on Ubuntu on Windows で Jupyter Notebook を使う場合
https://github.com/zeromq/libzmq/commit/b1e2b87f0f6d507b9af7221e06d9dcc9dbab55a8

https://github.com/zeromq/libzmq/commit/36af3edee2915ee7a90d3a2293b11abaf5bac772
が反映されているlibzmqでないとカーネルが死にます.

いつ頃からこの変更が pyzmq 同梱の libzmq に反映される(た?)のかはっきりしてません.
libzmq のコンパイルはそれほど大変でもないので自分でコンパイルする方法をまとめます.
(また http://qiita.com/kozo2/items/447d5edb6e3eb83268f0#_reference-3a4418285413867f39af のようにRubyカーネルを使う場合はこの方が都合がいいです.)

sudo su
apt install libtool autoconf pkg-config g++ make unzip python-dev python3-dev
wget https://github.com/zeromq/libzmq/archive/master.zip
unzip master.zip
rm master.zip
cd libzmq-master/
./autogen.sh
./configure
make
make install
ldconfig

wget https://bootstrap.pypa.io/get-pip.py
python2 get-pip.py
python3 get-pip.py
pip2 install pyzmq -U --install-option="--zmq=/usr/local/lib"
pip3 install pyzmq -U --install-option="--zmq=/usr/local/lib"
pip3 install -U jupyter
pip2 install -U ipykernel
python2 -m ipykernel install

後は jupyter-notebook コマンドを実行し Windows 側のブラウザで localhost:8888 を開くと Python2,3 のカーネルが死ぬことなく Jupyter Notebook が使えるかと思います.

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?