安装Theano时出现Memory error(实验虚拟机为Aliyun 1G 1CPU)解决方法是pip --no-cache-dir install Theano 参考 http://stackoverflow.com/questions/29466663/memory-error-while-using-pip-install-matplotliblotlib
这个问题同样在安装matplotlib时也会出现。

安装Jupyter时在安装pyzmq时出错了,这是选择的方法是重新安装zeromq,并且使用easy_install 安装pyzmq (貌似pip安装仍然出错)

安装zeromq的方法参见http://zeromq.org/intro:get-the-software

1
2
3
git clone https://github.com/zeromq/libzmq
./autogen.sh && ./configure && make -j 4
make check && make install && sudo ldconfig

可还是出现了错误,缺少Python.h,这个错误是因为没有安装python-dev
Centos系统中用yum install python-devel ubuntu系统中用apt-get sintall python-dev

在安装matplotlib时提示出错:

1
2
The following required packages can not be built:
Installing matplotlib requires packages “freetype” and “png”...

主要原因是缺少freetype和libpng,而这两个软件并不是python能解决的,需要用yum或者apt-get安装。比较坑的是光安装/升级freetype和libpng是没有用的,还得安装libpng-devel和freetype-devel(yum install libpng-devel)