'Installation of cx_Freeze fails

the installation of cx_Freeze fails with the error displayed in the screenshot below. I would be thankful if someone could guide me through the installation. The installation is attempted on Macbook with M1.

Thank you so much in advance.



Solution 1:[1]

Same was happening to me, I was using Python version 3.10.3 and the same error was launched. Nevertheless, a collegue with the same Macbook with M1 could install it using Python 3.9.9 I tried and it worked for me. See pictures for confirmation.
Python version pip list with cx-Freeze

I use virtual environment in PyCharm taking the python version from my pyenv pythons. To install cx-Freeze I confirmed that it is installing it in the venv using:

pip install cx_Freeze

And also if set in a requirements.txt using

pip install -r requirements.txt

I do not know which is the package that uses cx-Freeze is still not supported in python 3.10, but for 3.9.9 it will work ;)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 KermitTheCoder