新装了一个python2的环境,在pycharm和jupter notebook上运行没有问题,但是在命令行用python运行的时候却报错了:
ImportError: Matplotlib qt-based backends require an external PyQt4, PyQt5, or PySide package to be installed, but it was not found
具体原因不明,参考这篇文章的方法,pip install -U PySide
就好了。