Mac OS X:Python is not installed as a framework解决方案
今天运行一段python代码时出错。
报错信息:
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.
今天在使用labelme标注工具的时候报错如上,看了网上许多方法,亲测可行:
找到自己工程文件中“import matplotlib.pyplot as plt”所在地,在它之前添加两句话:
1 | import matplotlib |
原文
原文Mac OS X:Python is not installed as a framework解决方案
Anaconda Runtime Error: Python is not installed as a framework?