Jupyter matplotlib 画图就kernel died 问题解决
作者:互联网
运行如上所示的代码,没有图形出来。实际上看jupyter的log,kernel已经died了 日志如下;
Info 2021-12-07 15:11:03: Execute Cells request 2 1, 2
Info 2021-12-07 15:11:03: Execute Cell 1 file:///f%3A/pythonCode/juptyerCode//plot2.ipynb
Info 2021-12-07 15:11:03: Execute Cell 2 file:///f%3A/pythonCode/juptyerCode//plot2.ipynb
Info 2021-12-07 15:11:03: KernelProcess output: Content-Length: 137
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "WARNING", "msg": "Kernel has exited with exit code 3221225477, ", "pid": 22404}}Content-Length: 94
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "kernel_died", "params": {"exit_code": 3221225477, "reason": ""}}
Warn 2021-12-07 15:11:03: Python Daemon (pid: 22404): Kernel has exited with exit code 3221225477,
Error 2021-12-07 15:11:03: Kernel died [s [Error]: Kernel died (code: 3221225477). FutureWarning),
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:793230
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466054
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466272
at Immediate._onImmediate (c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:467837)
at processImmediate (internal/timers.js:461:21)] {
category: 'kerneldied',
stdErr: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n',
exitCode: 3221225477,
reason: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n'
} D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
Error 2021-12-07 15:11:03: KernelProcess Exit Exit - 3221225477, D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
[s [Error]: Kernel died (code: 3221225477). FutureWarning),
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:793230
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466054
at c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:466272
at Immediate._onImmediate (c:\Users\Admin\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:467837)
at processImmediate (internal/timers.js:461:21)] {
category: 'kerneldied',
stdErr: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n',
exitCode: 3221225477,
reason: `D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.\r\n` +
' FutureWarning)\r\n' +
`D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\lib\\site-packages\\traitlets\\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.\r\n` +
' FutureWarning)\r\n'
}
Error 2021-12-07 15:11:03: Disposing session as kernel process died ExitCode: 3221225477, Reason: undefined
Info 2021-12-07 15:11:03: Dispose Kernel process
Info 2021-12-07 15:11:03: kill daemon
Info 2021-12-07 15:11:03: KernelProcess output: Content-Length: 132
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel in DS Daemon", "pid": 22404}}
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Execute rpc method kill_kernel in DS Daemon
Info 2021-12-07 15:11:03: KernelProcess output: Content-Length: 180
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel from D:\\progameFiles\\Anaconda3\\envs\\tf2.1gpu\\python.exe", "pid": 22404}}Content-Length: 129
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon", "pid": 22404}}Content-Length: 140
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon, pid 39208", "pid": 22404}}Content-Length: 43
Content-Type: application/vscode-jsonrpc; charset=utf8
{"jsonrpc": "2.0", "id": 2, "result": null}
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Execute rpc method kill_kernel from D:\progameFiles\Anaconda3\envs\tf2.1gpu\python.exe
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Kill kernel in DS Kernel Launcher Daemon
Info 2021-12-07 15:11:03: Python Daemon (pid: 22404): Kill kernel in DS Kernel Launcher Daemon, pid 39208
Info 2021-12-07 15:11:03: Dispose Kernel process
Info 2021-12-07 15:11:03: KernelProcess Exit Exit - 3221225477 D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2205: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
FutureWarning)
D:\progameFiles\Anaconda3\envs\tf2.1gpu\lib\site-packages\traitlets\traitlets.py:2160: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '0ac2f1f7-b974-4410-8c29-153e98ff6eb9' instead of 'b"0ac2f1f7-b974-4410-8c29-153e98ff6eb9"'.
FutureWarning)
- Run Anaconda Prompt as administrator
- conda install --yes freetype=2.10.4
标签:progameFiles,kernel,Jupyter,Anaconda3,envs,matplotlib,traitlets,gpu,FutureWarnin 来源: https://www.cnblogs.com/youxin/p/15656557.html