3
1

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 5 years have passed since last update.

pip install jupyter を叩くと -bash: pip: command not found と表示される場合

Posted at

事象

表題の通りですが、以下のようになってしまいました。

$ pip install jupyter
-bash: pip: command not found

対処方法

どうやらパスが通ってないとのことで、絶対パスを調べました。
Anaconda をちょうど入れたばかりでしたが、ここで役に立つんですね。

$ find / -name pip
...(中略)...
/anaconda3/bin/pip
...(以下略)

ということで絶対パス指定で再度コマンド実行して、無事インストール完了しました。

$ /anaconda3/bin/pip install jupyter
(出力省略)

ちなみに jupyter コマンドも効かなかったので、同じように対応しました。

$ jupyter notebook
-bash: jupyter: command not found

$ find / -name jupyter
...(中略)...
/anaconda3/bin/jupyter
...(以下略)

$ /anaconda3/bin/jupyter notebook
(出力省略)
3
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?