py2app 错误:“无法复制“%s”:不存在或不是常规文件”
我正在尝试使用 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
有人知道我应该做什么吗?
I'm trying to pack my Python app with py2app. I'm running the setup.py
I created, and I get this error:
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
Does anyone have any clue what I'm supposed to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来,由于某种原因,它试图将命令行开关
--dist-dir
解释为文件名。 也许实际的开关被命名为其他名称,而您打错了它? 或者也许需要以不同的顺序指定?It looks like, for some reason or other, it's trying to interpret the command-line switch
--dist-dir
as a filename. Perhaps the actual switch is named something else and you typo'd it? Or perhaps it needs to be specified in a different order?