背景
Mac 在使用 miniconda 配置的 python 环境时,需要用 matplotlib 构建一个图时,发生了报错。
2019-04-16 08:10:08.994 python[3490:2489528] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7ffcea469ed0
2019-04-16 08:10:09.000 python[3490:2489528] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7ffcea469ed0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff42cc2cf9 __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff6d857a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff42d3cb06 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff42c650ef ___forwarding___ + 1485
4 CoreFoundation 0x00007fff42c64a98 _CF_forwarding_prep_0 +