Error loading python27.dll error for pyinstaller

前端 未结 5 1662
故里飘歌
故里飘歌 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:24

    You put that code snippet right at the top of the Python script you are turning into an executable - not in the spec and not in its own script. I found an example here:

    https://shanetully.com/2013/08/cross-platform-deployment-of-python-applications-with-pyinstaller/

提交回复
热议问题