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 State
- working with ASH and AWR
- Working with Errors in Go 1.13ErrorGo
- 【OSX】OSX下采用MAMP的PHP替換系統自帶PHPPHP
- MAC OSX學習(二)Mac
- matplotlib
- RxSwift (二) Working with SubjectsSwift
- Working With Node.js and RedisNode.jsRedis
- SCC.369 Working with GPIO
- How to install Maven on Mac OSXMavenMac
- Get a working copy of a bare repository
- eclipse Working Set設定Eclipse
- Mac OSX網路診斷命令Mac
- OSX 攻擊框架Empyre簡介框架
- 遠端管理 Mac OSX 裝置Mac
- 在 Mac OSX 上安裝 nginxMacNginx
- 【轉】Install libimobiledevice on Mac OSXdevMac
- Mac OSX Leopard 快捷鍵大全Mac
- Importerror : matplotlib is required for plotting when the default backend “matplotlib“ is backwardImportErrorUI
- Vim tips——Working with external commands
- Android working with Volley LibraryAndroid
- ejb object too much ,how server working??ObjectServer
- android TV-Working with Channel DataAndroid
- Probable reasons when Credit check is not working
- matplotlib 斜體
- OSX下安裝PHP7教程PHP
- Windows 10 美化 Mac OSX 實用教程WindowsMac
- nohup not working, another way to get the script run in the background
- HOW TO CHECK IF ASYNCHRONOUS I/O IS WORKING ON LINUXLinux
- matplotlib模組詳解
- 【matplotlib基礎】--動畫動畫
- matplotlib 資料收集
- matplotlib 顯示中文
- python包:matplotlibPython
- OSX10.10 Yosemite安裝MetasploitMIT
- Mac osx 下搭建java開發環境MacJava開發環境
- 開啟Mac OSX原生NTFS讀寫支援Mac