已经将Spyder作为WinPython 3.7的一部分进行了安装,每当尝试启动Spyder 3时,我都会一直收到错误消息。该消息与上面的标题相同。有趣的是,我以一种奇怪的方式解决了这个问题(对我而言),也就是说,如果我以管理员身份启动Spyder,则IPython控制台加载不会出现任何错误。如果我以其他方式执行此操作,则错误在那里等待我。
我不介意以管理员权限运行Spyder,但是该程序询问我是否每次选择管理员状态时都批准该程序在硬盘上进行更改。普通模式下的详细错误如下: 错误是:
Traceback (most recent call last):
File "C:\Users\Cem\Documents\WinPython64?.7.4.1\WPy64�\python?.7.4.amd64\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\Cem\Documents\WinPython64?.7.4.1\WPy64�\python?.7.4.amd64\lib\site‑packages\jupyter_client\manager.py", line 240, in start_kernel
self.write_connection_file()
File "C:\Users\Cem\Documents\WinPython64?.7.4.1\WPy64�\python?.7.4.amd64\lib\site‑packages\jupyter_client\connect.py", line 547, in write_connection_file
kernel_name=self.kernel_name
File "C:\Users\Cem\Documents\WinPython64?.7.4.1\WPy64�\python?.7.4.amd64\lib\site‑packages\jupyter_client\connect.py", line 212, in write_connection_file
with secure_write(fname) as f:
File "C:\Users\Cem\Documents\WinPython64?.7.4.1\WPy64�\python?.7.4.amd64\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "C:\Users\Cem\Documents\WinPython64?.7.4.1\WPy64�\python?.7.4.amd64\lib\site‑packages\jupyter_client\connect.py", line 102, in secure_write
with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Cem\\Documents\\WinPython64?.7.4.1\\WPy64�\\settings\\runtime\\kernel‑fa9f0a49c786.json'