python
主页 > 脚本 > python >

python3.9不支持pillow包解决办法

2024-06-20 | 佚名 | 点击:

概述:

我之前的项目是在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以上的包。

解决办法:

1

pip install pillow==8.0

原文链接:
相关文章
最新更新