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