1. ホーム
  2. python-3.x

[解決済み】`jupyter notebook`実行時のエラー(No such file or directory)

2022-01-24 03:42:36

質問

を実行すると jupyter notebook をArch Linuxの仮想環境で実行したところ、以下のエラーが発生しました。

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

Pythonのバージョンは3.6で、Jupyterのバージョンは4.3.0です。

どうすればこの問題を解決できますか?

解決方法は?

インストールが何らかの原因で失敗したように思われます。実行してみてください。

# For Python 2
pip install --upgrade --force-reinstall --no-cache-dir jupyter
# For Python 3
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

これでPyPiからすべて再インストールされるはずです。これは が必要です。 を実行すると、問題が解決すると思います。 pip install "ipython[notebook]" は、事態を混乱させました。