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
有没有人知道我该怎么做呢?
1 个回答
2
看起来,出于某种原因,它正在尝试把命令行选项 --dist-dir
当作一个文件名来理解。也许这个选项的实际名称是其他的,你打错了?或者可能需要按照不同的顺序来写?