Can't Install Pyheif python library

609 Views Asked by At

So, I have a Python project to convert and Compress images/pictures. I want this program to support the HEIC/HEIF format. I read about the library to use, and it said I could use Pyheif for the project. But, when it came to the installation, I found this issue.

pip error

Previously, I researched that I could use

Imageio Library

to support those formats. But it doesn't. So, right now, I want to try with Pyheif, but this new issue comes.

I'm using Python 3.12 in Windows, and not only that, but I need help to install some other libraries like TensorFlow and others. I can't install them.

I tried installing the Microsoft C++ build tools, but they are not working either. I tried to downgrade my Python version, and it is not working, too.

1

There are 1 best solutions below

0
user16171413 On

This error message _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. shows that you're having an issue with the version of your Setuptools. You can check the version of Setuptools in your python interpreter using:

import setuptools
print(setuptools.__version__)

If it's above version 58.2.0, then you might want to downgrade to a last version that worked using:

pip install setuptools==58.2.0

This should fix your errors and you should be able to install Pyheif package.