在Windows 7上安装IPython 2.2.0时出现问题

2024-10-02 22:33:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着在Windows7上安装IPython,具体的目的是能够试用IPython笔记本。在经历了一些错误的启动和问题之后,我终于可以开始工作了,IPython控制台正常运行,但是当我运行“IPython笔记本”时,我得到了以下结果:

C:\Users\dude102438\Downloads> ipython notebook
2014-09-13 16:57:13.861 [NotebookApp] Using existing profile dir: u'C:\\Users\\dude102438\\.ipython\\profile_default'
2014-09-13 16:57:13.979 [NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
2014-09-13 16:57:14.062 [NotebookApp] Serving notebooks from local directory: C:\Users\dude102438\Downloads
2014-09-13 16:57:14.062 [NotebookApp] 0 active kernels
2014-09-13 16:57:14.062 [NotebookApp] The IPython Notebook is running at: http://localhost:8888/
2014-09-13 16:57:14.062 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
ERROR:root:Exception in I/O handler for fd 788
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\zmq\eventloop\ioloop.py", line 340, in start
    self._handlers[fd](fd, events)
KeyError: 788
ERROR:root:Exception in I/O handler for fd 788
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\zmq\eventloop\ioloop.py", line 340, in start
    self._handlers[fd](fd, events)
KeyError: 788
ERROR:root:Exception in I/O handler for fd 788
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\zmq\eventloop\ioloop.py", line 340, in start
    self._handlers[fd](fd, events)
KeyError: 788

(。。。错误无限循环)

我首先尝试通过下载IPython-2.2.0.zip安装IPython,运行设置.py安装”,然后运行“ipython notebook”并等待依赖性错误出现,他们做到了。第一个pyzmq,我试图pip安装,但是我没有msvc设置,所以最后在http://www.lfd.uci.edu/~gohlke/pythonlibs找到了windows安装程序。然后是龙卷风,安装顺利。然后我遇到了这个问题。我手动卸载了(删除了Python27/Lib/site libraries和Python27/Scripts中的文件),并尝试安装ipython‑2.2.0.win32‑py2.7.exe(从Gohlke页面)并重新安装pyzmq,但结果还是一样。我确实安装了RabbitMQ,所以去掉了它,但结果还是一样。在

谢谢你的建议。在


Tags: inpy错误ipythonexceptionsiteerrorroot