启动内核时发生错误(anaconda中的spyder)

时间:2019-08-08 17:56:25

标签: spyder

当我从anaconda启动spyder时,会显示此错误

错误是:

  

回溯(最近通话最近):文件   “ C:\ Users \ user \ Anaconda3 \ lib \ site-packages \ traitlets \ traitlets.py”,   第528行,获取值= obj._trait_values [self.name] KeyError:   “上下文”

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
File "C:\Users\user\Anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole.py", line 1572, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle)
File "C:\Users\user\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 261, in start_kernel
self._connect_control_socket()
File "C:\Users\user\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 210, in _connect_control_socket
self._control_socket = self._create_connected_socket('control')
File "C:\Users\user\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 543, in _create_connected_socket
sock = self.context.socket(socket_type)
File "C:\Users\user\Anaconda3\lib\site‑packages\traitlets\traitlets.py", line 556, in __get__
return self.get(obj, cls)
File "C:\Users\user\Anaconda3\lib\site‑packages\traitlets\traitlets.py", line 535, in get
value = self._validate(obj, dynamic_default())
File "C:\Users\user\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 42, in _context_default
return zmq.Context()
File "zmq/backend/cython/context.pyx", line 49, in zmq.backend.cython.context.Context.__cinit__
zmq.error.ZMQError: Bad address

1 个答案:

答案 0 :(得分:0)

这看起来像thread的副本,也许某些防病毒软件/防火墙正在阻止。尝试禁用它,看看是否可行。