This error occurs if you are using Cx-freeze version 6.1, you can go back to 6.0 or go ahead:
pip install -U git+ https://github.com/anthony-tuininga/cx_Freeze.git@master
Here you can see the issue:
https://github.com/anthony-tuininga/cx_Freeze/issues/560
and this:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.