Anaconda Runtime Error: Python is not installed as a framework?

前端 未结 10 1761
时光取名叫无心
时光取名叫无心 2020-12-24 05:53

I\'ve installed Anaconda with the pkg installer:

Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:04:42) 
[GCC 4.2.1 (Apple Inc. build 557         


        
10条回答
  •  太阳男子
    2020-12-24 06:14

    Run the file using pythonw instead of python. This happens because python is not installed as a framework. Therefore use pythonw myScript.py instead of python myScript.py I am sure this will fix it.

    I had a similar error. 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.

提交回复
热议问题