前提・実現したいこと
matplotlibをpipでインストールしたのですが下のエラーが出て困っています。
発生している問題・エラーメッセージ
エラーメッセージ RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.
該当のソースコード
ソースコード import numpy as np import matplotlib.pyplot as plt np.random.seed(0) x = np.random.choice(np.arange(100), 100) y = np.random.choice(np.arange(100), 100) plt.scatter(x, y) plt.show()
試したこと
Pythonでmatplotlibをimportするとエラーが出る場合の対処策(Mac)
を試しましたが同じエラーが出ました。
補足情報(FW/ツールのバージョンなど)
Mac OS Mojave 10.14.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/02 05:42
2018/12/02 05:47