LoginSignup
1

More than 3 years have passed since last update.

jupyter lab の extension を install するためには git が必要な場合あり

Posted at

jupyter lab に関わる環境構築の Tips です。2020年2月のメモです。

前提

Windows10, anaconda (miniconda)

python 3.7.6
jupyterlab 1.2.6
nodejs 13.8.0

conda install -c conda-forge jupyterlab
conda install -c conda-forge nodejs

などで作った環境です。

インストールできない状態

インストラクション通りに node.js をインストールしても、extension のインストールに失敗します。エラーログに、こういう記載がありました。

jupyterlab-debug-xxxxxxxx.log
......
yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
error Couldn't find the binary git
......

明示されていない前提条件として、コマンドラインで git が使える必要がある場合があるようです。(そもそもなぜ git が入ってないのか、とは聞かないでください)

対策

安直ですが、git も conda で入れてしまいます。

conda install git

jupyter labextension install @jupyter-widgets/jupyterlab-manager k3d

エラー無く機能拡張がインストールできるようになりました。

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
1