LoginSignup
0
0

More than 1 year has passed since last update.

Jupyter labでKernelがないといわれた。

Last updated at Posted at 2021-10-31

Anacondaを起動してJupyterlabを起動したらNo Kernelとなったのでその原因とその修正方法をここに残します。

経緯

AnacondaのPromptでJupyterlabを起動するとブラウザが立ち上がり表示されるまでは動くがNo kernelとなってプログラムが動かせない状態になった。原因がAnaconda Promptに表示されていた。

ImportError: cannot import name 'Template' from 'string'

原因

フォルダの中にstring.pyというモジュール名を持ったPythonファイルを作成していたことだった。このファイルは予約された名前であったため、このファイルが参照され動かなくなっていた。

修正方法

string.pyのファイル名をほかの名前にすればいい。

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