Spyder:启动内核时发生错误

时间:2018-06-03 16:14:21

标签: python tensorflow ipython anaconda spyder

我收到此错误:启动内核时发生错误

我已经尝试过了 1. setuptools命令 2.更新spyder 3.卸载和安装 4.阅读几乎所有回复 5.以下是错误。

Traceback (most recent call last):
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 280, in 
    main()
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 248, in main
    from ipykernel.kernelapp import IPKernelApp
    ModuleNotFoundError: No module named 'ipykernel'
    Traceback (most recent call last):
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 280, in 
    main()
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 248, in main
    from ipykernel.kernelapp import IPKernelApp
    ModuleNotFoundError: No module named 'ipykernel'
    Traceback (most recent call last):
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 280, in 
    main()
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 248, in main
    from ipykernel.kernelapp import IPKernelApp
    ModuleNotFoundError: No module named 'ipykernel'
    Traceback (most recent call last):
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 280, in 
    main()
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 248, in main
    from ipykernel.kernelapp import IPKernelApp
    ModuleNotFoundError: No module named 'ipykernel'
    Traceback (most recent call last):
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 280, in 
    main()
    File "C:\Users\AHII\Anaconda3\lib\site‑packages\spyder\utils\ipython\start_kernel.py", line 248, in main
    from ipykernel.kernelapp import IPKernelApp
    ModuleNotFoundError: No module named 'ipykernel'

1 个答案:

答案 0 :(得分:0)

尝试安装ipykernel

pip install ipykernel
python -m ipykernel install --user

一些docs可以帮助你从ipython