mac 10.14/ conda/python 3.7环境下运行神经网络例子出现错误:

-- ::55.982 python[:] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7fd5a5811270
-- ::55.988 python[:] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7fd5a5811270'
*** First throw call stack:
(
CoreFoundation 0x00007fff3c94643d __exceptionPreprocess +
libobjc.A.dylib 0x00007fff68853720 objc_exception_throw +
CoreFoundation 0x00007fff3c9c3255 -[NSObject(NSObject) __retain_OA] +
CoreFoundation 0x00007fff3c8e5ad0 ___forwarding___ +
CoreFoundation 0x00007fff3c8e5478 _CF_forwarding_prep_0 +
libtk8..dylib 0x00000001334ee31d TkpInit +
libtk8..dylib 0x000000013344617e Initialize +
_tkinter.cpython-37m-darwin.so 0x000000010727aa0f _tkinter_create +
python 0x0000000105b028b6 _PyMethodDef_RawFastCallKeywords +
python 0x0000000105c3fba2 call_function +
python 0x0000000105c3d852 _PyEval_EvalFrameDefault +
python 0x0000000105c311fe _PyEval_EvalCodeWithName +
python 0x0000000105b01587 _PyFunction_FastCallDict +
python 0x0000000105b83c31 slot_tp_init +
python 0x0000000105b8dc01 type_call +
python 0x0000000105b02283 _PyObject_FastCallKeywords +
python 0x0000000105c3fc35 call_function +
python 0x0000000105c3d946 _PyEval_EvalFrameDefault +
python 0x0000000105b02075 function_code_fastcall +
python 0x0000000105c3fb27 call_function +
python 0x0000000105c3d852 _PyEval_EvalFrameDefault +
python 0x0000000105c311fe _PyEval_EvalCodeWithName +
python 0x0000000105b01587 _PyFunction_FastCallDict +
python 0x0000000105b054a2 method_call +
python 0x0000000105b02ef2 PyObject_Call +
python 0x0000000105c3da9d _PyEval_EvalFrameDefault +
python 0x0000000105c311fe _PyEval_EvalCodeWithName +
python 0x0000000105b02783 _PyFunction_FastCallKeywords +
python 0x0000000105c3fb27 call_function +
python 0x0000000105c3d88d _PyEval_EvalFrameDefault +
python 0x0000000105b02075 function_code_fastcall +
python 0x0000000105c3fb27 call_function +
python 0x0000000105c3d88d _PyEval_EvalFrameDefault +
python 0x0000000105c311fe _PyEval_EvalCodeWithName +
python 0x0000000105b02783 _PyFunction_FastCallKeywords +
python 0x0000000105c3fb27 call_function +
python 0x0000000105c3d88d _PyEval_EvalFrameDefault +
python 0x0000000105c311fe _PyEval_EvalCodeWithName +
python 0x0000000105b02783 _PyFunction_FastCallKeywords +
python 0x0000000105c3fb27 call_function +
python 0x0000000105c3d852 _PyEval_EvalFrameDefault +
python 0x0000000105b02075 function_code_fastcall +
python 0x0000000105c3fb27 call_function +
python 0x0000000105c3d88d _PyEval_EvalFrameDefault +
python 0x0000000105c311fe _PyEval_EvalCodeWithName +
python 0x0000000105c94760 PyRun_FileExFlags +
python 0x0000000105c93bd7 PyRun_SimpleFileExFlags +
python 0x0000000105cc17bf pymain_main +
python 0x0000000105ad4bbd main +
libdyld.dylib 0x00007fff69921085 start +
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap:

解决办法,运行下面的命令:

$ mkdir -p ~/.matplotlib
$ echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc

然后就成功了

具体原因可见:https://github.com/PAHdb/AmesPAHdbPythonSuite/issues/1

mac python3 conda pytorch出错:libc++abi.dylib: terminating with uncaught exception of type NSException的更多相关文章

  1. IOS Exception 1(libc++abi.dylib: terminating with uncaught exception of type NSException)

    2014-08-05 22:18:46.455 SwiftUI[1329:40871] -[_TtC7SwiftUI14MViewControler clickMe]: unrecognized se ...

  2. 新浪微博分享出现libc++abi.dylib: terminating with uncaught exception of type NSException微博微信SDK运行编译报错

    SDK出现libc++abi.dylib: terminating with uncaught exception of type NSException  的问题: 解决方法 结合 # 监测bug( ...

  3. libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

    In Xcode 9 and Swift 4: Print exception stack to know the reason of the exception: Go to show break ...

  4. libc++abi.dylib: terminating with uncaught exception of type NSException

    这是微信sdk注册时候报的错误 解决方法 选择Build Setting,在"Other Linker Flags"中加入"-Objc -all_load"

  5. 如何调试libc++abi.dylib handler threw exception错误

    From:http://blog.csdn.net/naruto_ku/article/details/8779203 在进行iOS开发时,偶尔会碰到libc++abi.dylib handler t ...

  6. iOS - libc++abi.dylib: terminate_handler unexpectedly threw an exception

    代码出现crash,报错:libc++abi.dylib: terminate_handler unexpectedly threw an exception 当我们很明确是某一块代码执行导致了错误, ...

  7. libc++abi.dylib: terminate_handler unexpectedly threw an exception错误小结

    说法一: 我们在运行xcode工程时,有时候会遇到”libc++abi.dylib: terminate_handler unexpectedly threw an exception”错误,app莫 ...

  8. libc++abi.dylib handler threw exception

    在iOS开发时,有时候遇到libc++abi.dylib handler threw exception这样的异常,  虽然在断点出加上了All Exceptions,也断到相应的代码了,但是没打印对 ...

  9. 综合出现NSScanner: nil string argument libc++abi.dylib: terminat错误的解决方案

    在开发中出现了这个错误,断点查找很久,没找到问题所在的代码,google下,发现了下面这几点会产生这个错误: 首先,顾名思义,错误原因是我们在调用某个方法的时候,传入了一个空字符串(注意区别于字符串内 ...

随机推荐

  1. H5新增特性、方法

    1.FileReader和progress实现实时监控文件上传进度 2.HTML5新增的客户端校验 1.调用checkValidity方法进行校验 2.setCustomValidity自定义错误

  2. ATOM中MARKDOWN的使用小结

    1.ctrl+shift+p ; 输入ssvvp ; 回车 2.输入markdown-preview进行安装 3.打开任意.md 文件 ; 按 ctrl-shift-m 进行预览

  3. [Intellij] 在IntelliJ IDEA 中创建运行web项目

    安装工具 1.JDK7+ 2.IntelliJ Idea 工具(下载安装后,网上找注册码破解即可) 3.tomcat7+ 解压缩版 明确两个概念: 1.Project:类似于eclipse的works ...

  4. [20190226]测试使用bbed恢复索引.txt

    [20190226]测试使用bbed恢复索引.txt --//上午做tab$删除恢复测试时发现,tab$的索引i_tab1很小.可以尝试使用bbed解决这个问题.--//首先在普通表上做一个测试看看. ...

  5. 洗礼灵魂,修炼python(88)-- 知识拾遗篇 —— 线程(2)/多线程爬虫

    线程(下) 7.同步锁 这个例子很经典,实话说,这个例子我是直接照搬前辈的,并不是原创,不过真的也很有意思,请看: #!usr/bin/env python #-*- coding:utf-8 -*- ...

  6. spreadJs 自动换行功能和自动增高行高

    var styleTmp = sheet.getStyle(displayRowIndex, displayColumnIndex, GcSpread.Sheets.SheetArea.viewpor ...

  7. e lisp 常用缓冲区函数详解

    e lisp 常用缓冲区函数详解 函数名 函数概要 buffer-name 返回当前缓冲区的名字 buffer-file-name 返回当前缓冲区所指文件的名字,包括路径 current-buffer ...

  8. win10升级后蓝牙不见了,设备管理器里没有,多了个串行控制器里的未知USB设备?

    win10更新后,蓝牙功能不见了,也没有打开的选项,设备管理器里也没有,多了个未知USB设备,重启无效,重装蓝牙驱动无效,BIOS中的Bluetooth是开的. 试了网上能找到的所有方法,包括更新wi ...

  9. LeetCode算法题-Ugly Number(Java实现-四种解法)

    这是悦乐书的第199次更新,第208篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第64题(顺位题号是263).编写一个程序来检查给定的数字是否是一个丑陋的数字.丑陋的数 ...

  10. 我的BRF+自学教程(三):动态技术

    开发者们可以在编程中使用各种动态技术,比如RTTS,比如通过动态的类创建和多态来实现功能的平滑扩展.BRF+开发中也存在一些动态手段.本文将介绍3种不同场景下的动态实践方式.其中第一种是纯配置的,第二 ...