起こったこと
kaggleのpython環境のdockerイメージ gcr.io/kaggle-images/python:v69 からコンテナを作成した。
コンテナに入って「jupyter notebook」コマンドを叩くと、
[I 08:00:53.549 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
Illegal instruction
が表示され、notebookが上手く立ち上がらなかった。
ググった結果、tensorflowのエラーメッセージかもしれないと判断し、
python3 -c 'import tensorflow as tf; print(tf.version)'
と実行すると、
Illegal instruction
と表示された。tensorflow(2.0.0)をコンテナからアンインストールしてみると、jupyterが起動できた。
その後、改めて tensorflow(2.0.0)をインストールしてjupyterを起動すると、エラーなく立ち上がった。
import tensorflow as tf
print(tf.version)
を実行し、
2.0.0
と表示された。
環境
macOS 10.14.6
MacBook Pro (13-inch, Mid 2012)
2.9 GHz Intel Core i7 (ivybridge)
dockerイメージ gcr.io/kaggle-images/python:v69で作成したdebianのコンテナで起動
知りたいこと
どんなエラーによってjupyter notebookが起動できなかったのか、なぜインストールし直して起動できるようになったのか知りたい。
特に、tensorflowのバージョンが合わないなどの理由でjupyterの起動自体ができないことがあるのか知りたい。
あなたの回答
tips
プレビュー