use*_*884 22 pyinstaller python-2.7
所以我在64位Windows 7上运行,并使用Pip和PyWin32设置Pyinstaller.我有python 2.7.
我用这段代码制作了一个简单的hello world程序
print "hello world!"
Run Code Online (Sandbox Code Playgroud)
我将该文件放在与PyInstaller相同的目录中,并在命令提示符下运行此代码
pyinstaller.py helloWorld.py
Run Code Online (Sandbox Code Playgroud)
然而,当我尝试时,我收到此错误消息:
Error loading Python DLL: C:\PROGRA~1\PYINST~1.1\build\HELLOW~1\python27.dll (error code 126)
Run Code Online (Sandbox Code Playgroud)
我做错了什么,如何解决这个问题?
tul*_*tul 35
使用-F标志运行以生成独立的exe:
pyinstaller.py -F helloworld.py
Run Code Online (Sandbox Code Playgroud)
它将输出到dist/helloworld.exe
注意这是与-F不使用时的不同位置,请务必在之后运行正确的exe.
| 归档时间: |
|
| 查看次数: |
24174 次 |
| 最近记录: |