Working with Matplotlib on OSX
問題描述
➜ python python t_matplotlab.py
Traceback (most recent call last):
File "t_matplotlab.py", line 1, in <module>
import matplotlib.pyplot as plt
File "/Users/wangchen/.pyenv/versions/3.6.5/lib/python3.6/site-packages/matplotlib/pyplot.py", line 115, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/Users/wangchen/.pyenv/versions/3.6.5/lib/python3.6/site-packages/matplotlib/backends/__init__.py", line 62, in pylab_setup
[backend_name], 0)
File "/Users/wangchen/.pyenv/versions/3.6.5/lib/python3.6/site-packages/matplotlib/backends/backend_macosx.py", line 17, in <module>
from matplotlib.backends import _macosx
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.
解決辦法
echo "backend: TkAgg" >> ~/.matplotlib/matplotlibrc
相關文章
- Matplotlib: Max OSX系統上pyplot.show()無法顯示圖片問題分析
- Working with Errors in Go 1.13ErrorGo
- Vim tips——Working with external commands
- SCC.369 Working with GPIO
- Get a working copy of a bare repository
- matplotlib
- SharePoint 2013 workflows stop working (Failed on started.)AI
- 遠端管理 Mac OSX 裝置Mac
- MAC OSX Docker安裝教程2018MacDocker
- OSX 攻擊框架Empyre簡介框架
- Mac OSX網路診斷命令Mac
- Chapter 5:Perl One-Liners:Working with Arrays and StringsAPT
- OGG4DB2 for IBM i PURGEOLDEXTRACTS not workingDB2IBM
- [iOS]The following untracked working tree files would be overwritten by mergeiOS
- Windows 10 美化 Mac OSX 實用教程WindowsMac
- Importerror : matplotlib is required for plotting when the default backend “matplotlib“ is backwardImportErrorUI
- ? 那些能幫我愉快Working的Mac軟體Mac
- 06-Matplotlib
- python包:matplotlibPython
- matplotlib 斜體
- EVE-NG 入門教程 (Mac OSX BIg Sur)Mac
- Python進階 — matplotlibPython
- 【莫煩】Python MatplotlibPython
- Python進階 -- matplotlibPython
- matplotlib 顯示中文
- matplotlib畫圖未顯示,以及PyCharm中 %matplotlib inline報錯PyCharminline
- 最新 Mac 惡意軟體 OSX/CrescentCore 被發現Mac
- Mac OSX 10.12顯示通用中的任何來源Mac
- 如何為OSX備忘錄新增密碼保護?密碼
- python繪圖之matplotlibPython繪圖
- matplotlib嵌入到pyqt中QT
- 【matplotlib 實戰】--餅圖
- 【matplotlib基礎】--動畫動畫
- Matplotlib 詳細繪圖繪圖
- matplotlib 強化學習強化學習
- Matplotlib顏色對照表
- matplotlib繪製圖形
- matplotlib模組詳解