概述:
我之前的项目是在centos服务器上跑着,centos服务器用的python版本是3.6.6,今天放到pycharm开发工具里安装依赖包的时候pip install -r requirement.txt,发现报错:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Pillow
Running setup.py clean for Pillow
Failed to build Pillow
于是我单独安装每个依赖模块,发现是pillow包的问题,根据报错的官方提供的网站,我的pycharm使用的python版本是3.9的版本,我上去发现python3.9不支持使用pillow2.6版本的依赖包,支持8.0以上的包。
链接:https://pillow.readthedocs.io/en/latest/installation/python-support.html
解决办法:
pip install pillow==8.0