在Spyder IDE中设置Start_IPython_Kernel.py的路径

时间:2015-10-02 17:04:20

标签: python ipython zeromq anaconda spyder

我刚刚安装了 Anaconda3-2.3.0-Windows-x86_64 。以前我用过 Anaconda-2.0.1-Windows-x86 (32位)。我有 Anaconda Anaconda3 文件夹(这是一台正在运行的计算机,因此我需要保留两者以实现向后兼容)。

然后,我在Spyder的控制台偏好设置中设置了 python.exe scientfic_startup.py Ananconda3 文件夹中,而不是 Anaconda

然后,当我启动Spyder时,它会收到与 zmq 相关的以下错误。它似乎一直在 旧Anaconda 文件夹中查找文件,而不是在 新Anaconda3 文件夹中查找文件。如果在Anaconda3中寻找东西,问题会消失吗?如果是这样,我怎样才能让Spyder在Anaconda3中寻找它?

 "C:\AppData\Local\Continuum\Anaconda\lib\site‑packages\spyderlib\widgets\externalshell\start_ipython_kernel.py", line 167, in from IPython.kernel.zmq.kernelapp import IPKernelApp

 File "C:\AppData\Local\Continuum\Anaconda\lib\site‑packages\IPytho \kernel\__init__.py", line 4, in from . import zmq

 File "C:\AppData\Local\Continuum\Anaconda\lib\site‑packages\IPytho \kernel\zmq\__init__.py", line 8, in  check_for_zmq('13', 'IPython.kernel.zmq')

 File "C:\AppData\Local\Continuum\Anaconda\lib\site‑packages\IPytho\utils\zmqrelated.py", line 10, in check_for_zmq import zmq

 File "C:\Users\O629626\AppData\Local\Continuum\Anacond\lib\site‑packages\zmq\__init__.py", line 42, in _libsodium = ctypes.cdll.LoadLibrary(bundled_sodium[0])

 File "C:\Users\O629626\AppData\Local\Continuum\Anaconda3\lib\ctypes\__init__.py", line 429, in LoadLibrary

 return self._dlltype(name)

 File "C:\Users\O629626\AppData\Local\Continuum\Anaconda3\lib\ctype \__init__.py", line 351, in __init__

 self._handle = _dlopen(self._name, mode)

 OSError: [WinError 193] %1 is not a valid Win32 application

1 个答案:

答案 0 :(得分:1)

打开与特定Anaconda相关联的默认Spyder解决了这个问题。