在使用PIP安装软件时,需要指定国内的PIP源(镜像)。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple m3-PIL
本来可以配置成自动的,但是,我安装的PIP,~/.pip目录找不到,只有目前这样临时做了。
另外,使用PIP安装软件的时候,会遇到一些软件提示:
error:Python.h: No such file or directory
在centos中,一般是python-devel没有安装,
yum install python-devel
然后,再安装模块。
然而,还是有些模块,找不到,可能就需要自己下载编译安装。