pyinstaller打包报错

ERROR:

Traceback (most recent call last):
  File "", line 2, in 
ModuleNotFoundError: No module named 'setuptools._vendor'
Traceback (most recent call last):
  File "D:\Program Files\python36\Scripts\pyinstaller-script.py", line 11, in 
    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

 

 

你可能感兴趣的:(python常见问题解决方法)