小编Mat*_*ene的帖子

无法从 py2exe 编译的脚本中导入 distutils

我在 Windows Server 2012R2 上,尝试在 virtualenv 中使用 py2exe 编译脚本,每当应用程序脚本之一尝试“导入 distutils”(在我的情况下,它位于第 3 方库中的某个位置)时,我就会遇到问题,但我在这里减少了问题)。

重现步骤:

它返回:

    C:\Users\root\p\dist\library.zip\distutils\__init__.py:14: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils?
    Traceback (most recent call last):
      File "py2exe_distutils.py", line 6, …
Run Code Online (Sandbox Code Playgroud)

python distutils py2exe virtualenv

5
推荐指数
1
解决办法
1676
查看次数

标签 统计

distutils ×1

py2exe ×1

python ×1

virtualenv ×1