LoginSignup
1
0

More than 1 year has passed since last update.

【Jupyter Notebook】Bad file descriptorエラーを解決する

Posted at

内容

タイトル通りですが、解決できる対象の環境はディレクトリ名に日本語が入っている(Windows OSでユーザー名に日本語が入っている等)場合です。
エラー内容としてはjupyter notebookコマンドからノートブック立ち上げ→カーネル立ち上げ→Bad file descriptorでノートブックが強制終了してしまうことを指しています。

(以下のようにノートブック立ち上げ後にBad file descriptorで落ちてしまう)
SnapCrab_NoName_2022-6-1_20-50-9_No-00.png

解決方法

pip install notebook実行時にインストールされるpyzmqをアンインストール

python
pip uninstall pyzmq

pyzmq==19.0.2を再インストールする

python
pip install pyzmq==19.0.2

これで解決するはずです。

また、pyzmq==19.0.2インストール時、jupyter-clientライブラリのバージョンが新しいと

ERROR: jupyter-client 7.3.0 has requirement pyzmq>=22.3, but you'll have pyzmq 19.0.2 which is incompatible.

のように出ますが、今回のエラーについては解決できます。

1
0
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
1
0