Pyinstaller compile to exe

前端 未结 8 1350
旧时难觅i
旧时难觅i 2021-01-18 02:09

I am trying to compile a Kivy application to a windows exe, but I keep receiving an attribute error: AttributeError: \'str\' object has no attribute \'items\'

I have

相关标签:
8条回答
  • 2021-01-18 02:36
    pip install --force-reinstall --no-binary :all: pyinstaller
    

    Did the trick for me but only when running it into a command prompt as administrator....(Win10)

    0 讨论(0)
  • 2021-01-18 02:38

    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
    
    0 讨论(0)
  • 2021-01-18 02:42

    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.

    0 讨论(0)
  • 2021-01-18 02:43

    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.
    0 讨论(0)
  • 2021-01-18 02:44

    I have solved this by installing some dependencies,

    pip install --force-reinstall --no-binary :all: pyinstaller
    

    Here is the source issue link

    0 讨论(0)
  • 2021-01-18 02:45

    I had similar error output from Pyinstaller with a wxPython project. It was solved it by upgrading setuptools (from 38.5.1 to 39.0.2).

    0 讨论(0)
提交回复
热议问题