[英]py2exe can not find target script
Here's my setup.py: 这是我的setup.py:
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1}},
console = [{'script': "target.py"}],
zipfile = None,
)
target.py is in the same directory as setup.py, when I run the command (have to use full path or it doesn't even get this response): 当我运行命令时,target.py与setup.py位于同一目录(必须使用完整路径,否则甚至无法获得此响应):
C:\Python\app\python.exe C:\Final\setup.py py2exe
the response in command is: 命令中的响应为:
running py2exe
*** searching for required modules ***
error: target.py: No such file or directory
I'm not sure what I'm doing wrong and it's probably quite dumb. 我不确定自己在做什么错,这可能很愚蠢。 If anyone has any idea I'd appreciate the input.
如果有人有任何想法,我将不胜感激。
Thanks, 谢谢,
只需使用cd
命令将您当前的工作目录更改为C:\\Final\\
并运行: C:\\Python\\app\\python.exe setup.py py2exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.