【问题标题】:py2app error: "can't copy '%s': doesn't exist or not a regular file"py2app 错误:“无法复制 '%s':不存在或不是常规文件”
【发布时间】:2009-08-05 22:30:04
【问题描述】:

我正在尝试使用 py2app 打包我的 Python 应用程序。我正在运行我创建的setup.py,但出现此错误:

  File "C:\Python26\lib\distutils\file_util.py", line 119, in copy_file
    "can't copy '%s': doesn't exist or not a regular file" % src
DistutilsFileError: can't copy '--dist-dir': doesn't exist or not a regular file

> c:\python26\lib\distutils\file_util.py(119)copy_file()
-> "can't copy '%s': doesn't exist or not a regular file" % src

有人知道我应该做什么吗?

【问题讨论】:

    标签: python macos py2app


    【解决方案1】:

    看起来,出于某种原因,它试图将命令行开关--dist-dir 解释为文件名。也许实际的开关被命名为别的东西,而你打错了?或者可能需要以不同的顺序指定?

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-02-24
    • 2022-07-05
    • 1970-01-01
    • 1970-01-01
    • 2015-05-19
    • 2021-09-23
    • 1970-01-01
    • 2017-10-03
    相关资源
    最近更新 更多