Error loading python27.dll error for pyinstaller

前端 未结 5 1649
故里飘歌
故里飘歌 2020-12-30 09:15

I have successfully edited my spec file and added the folder with my data to it. It builds fine but it still can\'t access the data. WHen i try to run the compiled .exe i ge

5条回答
  •  [愿得一人]
    2020-12-30 09:35

    I found same error after creating a standalone executable like this:

    pyi-makespec.exe -F program.py
    ## Customize script.spec just created
    

    and

    pyinstaller.exe -F script.spec
    

    so I needed to run the executable as administrator to solve it.

    I don't know the reason because it wasn't my computer. I had done the process in mine first and worked like a charm but not there. Perhaps some security configuration or a weird installation of python or wxpython, but I add this solution here because I was looking for hours without success, and it's a simple task that can save you some time before trying more complex approaches.

提交回复
热议问题