ERROR:
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'setuptools._vendor'
Traceback (most recent call last):
File "D:\Program Files\python36\Scripts\pyinstaller-script.py", line 11, in <module>
load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()
......
for real_module_name, six_module_name in real_to_six_module_name.items():
AttributeError: 'str' object has no attribute 'items'
解决办法:
需要更新 setuptools 或者直接更新 pyinstaller
pip3 install -U setuptools
or
pip3 install -U pyinstaller