5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

zsh: command not found: jupyterの対応

Posted at

##背景
新しいmacが支給されて、pip3 install jupyterでjupyterをインストールし、ターミナルでjupyter notebookと入力すると、zsh: command not found: jupyterとエラーが返ってきました。

macOS Catalinaになってデフォルトのシェルがzshになり、pathを通さなければいけないとのこと。

##やったこと
find ~/.zshrcなどでファイルがあるか確認、
なければtouch ~/.zshrcでファイルを新規作成

Vim .zshrcを開き、以下の1行を追記する

export PATH=$PATH:[追加したいディレクトリの絶対パス名]
export PATH=$PATH:$HOME/Library/Python/3.8/bin

esc、:wqで .zshrcを閉じ、以下のコマンドでzshを再起動
source ~/.zshrc

##参考
zshにPATHを通す方法

5
3
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
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?