
python
nciasd
perl,python,java,oracle,Linux,docker,AI,math
展开
-
python: cannot open shared object file: No such file
编辑/etc/ld.so.conf文件,在新的一行中加入库文件所在目录;#vim /etc/ld.so.conf#以下是文件内容include /etc/ld.so.conf.d/*.conf/usr/lib64/python2.7/site-packages/PIL/usr/local/lib/usr/lib/usr/lib64运行ldconfig,以更新/etc/ld.so.cach原创 2016-06-28 10:53:19 · 1280 阅读 · 0 评论 -
python编译错误:Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
如果出现:Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS,是因为SSL没有安装。执行以下:yum install openssl-devel原创 2016-06-15 18:05:33 · 11767 阅读 · 4 评论 -
python中pip安装软件
在使用PIP安装软件时,需要指定国内的PIP源(镜像)。 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple m3-PIL本来可以配置成自动的,但是,我安装的PIP,~/.pip目录找不到,只有目前这样临时做了。另外,使用PIP安装软件的时候,会遇到一些软件提示:error:Python.h: No such file or directo原创 2016-06-16 11:15:27 · 732 阅读 · 0 评论 -
Centos PIL 安装
PIL是python理想的图片处理module,但是想要良好的支持各种图片,还需要检查一下几步,否则会提示:IOError: decoder jpeg not available之类的。我的环境:Linux mint 11 amd64 / Python2.7 第一步:安装zlib png freetype jpeg 1 zlib set upyum install zlib2 stall pn转载 2016-06-16 12:13:51 · 773 阅读 · 1 评论