windows系统安装jupyter notebook,缺少libzmq的解决方法

这几天学习jupyter notebook,用pip安装的jupyter。但是命令行执行“jupyter nootbook”后提示没找到zmq.libzmq。怒啊~~!!!

 

baidu+google了一番,有2种解决方案:

1.pip安装pyzmq

2.github下载libzmq源码,然后编译。

 

第一种方法:试过之后发现然并卵。

第二种方法:首先我电脑上没有vs(好尴尬);其次安装libzmq过程中可能会发现缺少其他库(libsodium),需要下载源码编译(同学们,这简直就是递归啊!)。想尝试这种方法的同学请参考这篇文章 点我点我

 

最后找到一种方法(抱歉 忘记怎么找到的了):

Microsoft官网下载vcforpython27.msi,双击安装。命令行试一下import zmq,啊? 啊!竟然没报错。又试一下jupyter notebook,啊? 啊!竟然成功启动!

vcforpython27是啥呢?

This package contains the compiler and set of system headers necessary for producing binary wheels for Python 2.7 packages.

我用的是python3.5,安装vcforpython27后同样能解决问题。

 

是不是用linux就不会遇到这些问题了呢?

 

posted @ 2016-07-10 16:46  daxxlll  阅读(2586)  评论(0编辑  收藏  举报