ubuntu安装Pillow

ubuntu安装Pillow

想用python做简单图像处理,直接用pip安装出现了问题,可按如下解决:

  • 安装依赖库
sudo apt-get install libjpeg8-dev
sudo apt-get install libpng12-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libwebp-dev
sudo apt-get install libtiff5-dev
sudo apt-get install libopenjpeg-dev
sudo apt-get install libzip-dev

可用vim写入文档,chmod 777 ,然后运行

  • sudo pip install Pillow
posted @ 2017-08-07 07:42  Rainlin  阅读(2584)  评论(0编辑  收藏  举报