LoginSignup
1
1

More than 5 years have passed since last update.

pip3でJupyterが導入できなかった時の解決策

Posted at

実行環境

  • MacBook Pro
  • macOS Sierra ver: 10.12.6
  • homebrew導入済み
  • Python3をインストーラで導入済み

※ terminalを誤って閉じてしまったのでメモだけ

pip3でJupyterを導入しようとしたところ、下のようなエラーが。

Could not find a version that satisfies the requirement ... (from versions: ) No matching distribution found for ...

どうも、「pip3が今のversionではJupyter見つからないけど?」というようなエラーのようでした。(正確な解釈はできていないと思いますが、ご容赦ください)

pip3やPython3をhomebrewで更新したものの、なぜかversionが変わらない…。Python3をインストーラから導入したことで、homebrewで導入したPython3が反映されていなかったようです。

そこで、https://blog.fkoji.com/2012/10022035.html の記事を参考にインストーラから導入したPython3を削除しました。以下、手順です。

  1. アプリケーションフォルダから、Python3を削除
  2. sudo rm -rf /Library/Frameworks/Python.frameworkを実行
  3. sudo rm -rf /usr/local/bin | grep Pythonを実行
  4. emacs ~/.bash_profileで、.bash_profileからPython3に関する記述を削除して、ctrl+「x」+「c」(保存) ※ 「Frameworks/Python.framework」と書いてある文だった気がします。インストーラで導入すると、勝手に.bash_profileに書き込まれるようなのですが、コメントがついているのでわかると思います。
  5. source ~/.bash_profileで、.bash_profileの設定を更新
  6. もう一度、homebrewからPython3やpip3を導入
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