Python
1import matplotlib.pyplot as plt
以上を実行すると以下のエラーが出ます
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.
~/.matplotlib
にmatplotlibrcファイルを作成して
backend : TkAgg
のようにmacosx以外のバックエンドを指定すればいい
参考:https://qiita.com/katryo/items/918667f28301fdec89ba
と調べたら書いてありました。
しかし、/.matplotlibがどこにあるかということからわかりません。
matplotlibはpipでインストールしました。
どのように実行したら良いでしょうか
よろしくお願い致します
回答1件
あなたの回答
tips
プレビュー