ubuntu14.04安装python的图像处理库PIL

时间:2021-07-18 06:31:28

pip安装:

####@####:sudo apt-get install python-pip

提示cannot ...http://us.archive.ubuntu.com trusty-proposed/universe amd64 ...等一系列的问题,然后更新一下

####@####:sudo apt-get update

更新完毕后

####@####:sudo apt-get install python-pip

等待安装pip完成,再利用pip安装PIL,出现如下问题:

Downloading/unpacking PIL
  Could not find any downloads that satisfy the requirement PIL
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /home/hadoop/.pip/pip.log

未找到需要的包,只能利用源代码安装了

源代码下载地址,下载压缩文件包Imaging-1.1.7.tar.gz

解压:

####@####:tar -zxvf Imaging-1.1.7.tar.gz