Search code examples
pythonpython-3.xpython-imaging-library

Unable to install backports.zoneinfo which is required to install Pillow through wheel


I'm setting up my project in MacOs and needed to install requirements (including Pillow). When I run the pip3 install -r requirements.txt, everything goes fine until I receive the following message:

ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects

I've seen similar question which answers are to upgrade pip, which I did, but the error remains the same.

I'm using Python 3.10 in a venv on MacOS


Solution

  • backport zoneinfo does not have wheels for python3.10. So you will have to use 3.9 or lower version till the 3.10 wheels are released.