Pyinstaller compile to exe

If you are still having this issue, here is what solved it for me:

pip install --upgrade setuptools

I've tried installing six (in my case, it wasn't already installed), but since it seems that it is looking for _vendor.six and not just six, that didn't solve it. Somehow, upgrading setuptools solves it.


I had a similar error when trying to compile my script to a macho using pyinstaller. I tried uninstalling/reinstalling six and setuptools as suggested elsewhere to no effect. I noticed another error regarding enum and tried uninstalling enum34 via pip. This did it.

pip uninstall enum34

Things to check:

  • Check the output above the stated error. Sometimes some moudles required might not have been installed. Make sure that all modules are installed and no prior errors.
  • Upgrade setup tools using command :

    pip install --upgrade setuptools
    
  • Unistall and re-install modules like six, setuptools, pyinstaller also helps in some cases.