Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinRar 制作自解压程序在 win7 解压运行时找不到 Py_Main #77

Open
arthurchen1906 opened this issue Apr 29, 2024 · 2 comments

Comments

@arthurchen1906
Copy link

32位 sp1 win7

WinRar设置解压后运行那个编译后的exe

制作的自解压程序在win10/win11 上可以正常使用,
在win7 上自解压后就报错找不到 Py_Main, 我找到自解压的路径,然后直接双击运行exe,也是可以正常运行的

然后,我把自解压后运行的程序改成了runtime中的python.exe,测试发现是可以运行的

看了PyStand中的代码,都已经找到了动态库,咋找不到Py_Main,但是手动解压或者自解压结束点击exe运行又是能正常运行的

@skywind3000
Copy link
Owner

用 7z 做自解压试试

@arthurchen1906
Copy link
Author

arthurchen1906 commented Apr 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants