問題背景
在ContOS服務器上測試項目
解決方案
谷歌查詢
解決步驟
- 降低matplotlib版本至2.2.2
pip3 install matplotlib==2.2.2
- 出現新的問題,ImportError: Matplotlib qt-based backends require an external PyQt4, PyQt5,PySide or PySide2 package to be installed, but it was not found.
解決方法:安裝PyQt5
pip3 install PyQt5
- 安裝后仍出現2中的問題,應該是缺少PySide
解決方法,安裝PySide
pip3 install PySide
- 安裝PySide時報錯:Complete output (1 lines):only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
解決方法:安裝PySide2
pip3 install PySide2