这与运行10.10.5的mac有关。试图安装Python 3.6。到目前为止找不到任何答案。
从python.org升级,正确安装(至少是安装sw的指示)但是当打开IDLE或运行测试(python3.6 -m test
)时,我收到消息: Python退出出乎意料即可。以下是尝试打开IDLE后OS X的截断问题报告:
Process: Python [1236] Path: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python Identifier: org.python.python Version: 3.6.4 (3.6.4) Code Type: X86-64 (Native) Parent Process: bash [401] Responsible: Terminal [301] User ID: 501 Date/Time: 2018-03-08 09:36:59.185 +0100 OS Version: Mac OS X 10.10.5 (14F2511) Report Version: 11 Anonymous UUID: 8D3C18A4-789C-F7B7-0CAC-4F1FF0BB00E8 Time Awake Since Boot: 1300 seconds Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1000) creating CGSWindow on line 281' terminating with uncaught exception of type NSException abort() called
我已经按照python.org上推荐的Tcl 8.5.18.0尝试了这个。
我还运行了以下python -m test
,获得了许多 Python意外退出消息(包含报告)。终端在测试完成后提供了这些信息:
381 tests OK. 2 tests failed: test_calendar test_re 23 tests skipped: test_asdl_parser test_curses test_dbm_gnu test_devpoll test_epoll test_gdb test_msilib test_ossaudiodev test_smtpnet test_socketserver test_spwd test_startfile test_timeout test_tix test_tk test_ttk_guionly test_urllib2net test_urllibnet test_winconsoleio test_winreg test_winsound test_xmlrpc_net test_zipfile64 Total duration: 14 min 23 sec Tests result: FAILURE
我卸载了python并重新安装,但没有成功。
答案 0 :(得分:0)
也许某些python os依赖项不适用于3.6
你尝试过虚拟环境吗?