[英]py2app error: “can't copy '%s': doesn't exist or not a regular file”
I'm trying to pack my Python app with py2app. 我正在尝试将我的Python应用程序与py2app打包在一起。 I'm running the
setup.py
I created, and I get this error: 我正在运行创建的
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
Does anyone have any clue what I'm supposed to do? 有人知道我应该做什么吗?
It looks like, for some reason or other, it's trying to interpret the command-line switch --dist-dir
as a filename. 出于某种原因,它似乎试图将命令行开关
--dist-dir
为文件名。 Perhaps the actual switch is named something else and you typo'd it? 也许实际的开关被命名为其他名称,而您打错了? Or perhaps it needs to be specified in a different order?
还是需要以其他顺序指定它?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.