Python exe在unicode文件夹中失败。错误Python

2024-10-08 22:25:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我创建了一个hello.py。 然后创建setup.py

from distutils.core import setup
from py2exe.build_exe import py2exe

setup(console=["hello.py"])

然后使用python setup.py py2exe创建构建。 这是成功的,效果很好

现在我用unicode名称(例如-औ玻璃纤维生长因子) 当我执行这个构建时,它给出了一个错误

C:\?gfgf\dist>hello.exe
LoadLibrary(pythondll) failedThe specified module could not be found.
C:\?gfgf\dist\PYTHON27.DLL
C:\?gfgf\dist>

Tags: frompycoreimportbuildhellodistsetup

热门问题