1
1

More than 3 years have passed since last update.

macのfishでjupyternotebookが起動しない

Last updated at Posted at 2020-10-01

!Mac OS X-10.15.7 !ruby-2.7.1p83

症状

anaconda3をosx(catalina)に入れて,AnacondaーNavigator.appからjupyter notebookをlaunchしたところ,terminalで以下のようなerrorが出て死にました.

$ /****/****/anaconda3/bin/jupyter_mac.command ; exit;
Failed to execute process '/****/****/anaconda3/bin/jupyter_mac.command'. Reason:
exec: Exec format error
The file '/****/****/anaconda3/bin/jupyter_mac.command' is marked as an executable 
but could not be run by the operating system.

解決法

terminalのdefault shellをfishにしたためです.jupyter_mac.commandの先頭に以下のshebang

#!/bin/bash

を追加して解決しました.

zshでも多分同じ(未検証).


  • source ~/Desktop/lecture_20f/math_python/jupyter_notebook_on_fish.org
1
1
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
1