The problem is caused by the latest setuptools in combination with sdist containing both pyinstaller.py script and PyInstaller package (which end up shadowing each other on case-insensitive OSes, i.e., Windows in macOS). In current versions of pyinstaller, the fix was to remove the script as it is not used anyway (there are auto-generated entry-point scripts) - take a look at https://github.com/pyinstaller/pyinstaller/pull/6701.
We generally don't support old PyInstaller versions, so if you want to continue using 4.0~4.3, you'll need to backport the fix yourself. (EDIT: or pin setuptools to an earlier version).
I try remove pyinstaller and pyinstaller-hooks-contrib from requirement, and the error is gone and the requirement succesfully installed
#6704
I try remove pyinstaller and pyinstaller-hooks-contrib from requirement, and the error is gone and the requirement succesfully installed
Python = 3.10 windows 11