leledexixi
数星星的小贝壳
2018-01-19 10:04

Mac系统上import matplotlib.pyplot as plt出现下面问题

5
  • python
  • matplotlib
  • mac os x

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这个模块我是通过pycharm直接安装的,运行在venv里,没有装AnaConda

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答