简体   繁体   English

pyinstaller (auto-py-to-exe) 错误:项目 output 不会移动到 output 文件夹?

[英]pyinstaller (auto-py-to-exe) error: Project output will not be moved to output folder?

python v3.6.8
PyInstaller v3.6
auto-py-to-exe v2.7.5
os: windows 7

Command:命令:

pyinstaller --noconfirm --onedir --console --name "MyMainapp" --key "qXx53d02m2PrswB1" --debug "all"  "<Script Location>"

When I want to convert a python file to exe (using auto-py-to-exe), these errors are shown to me:当我想将 python 文件转换为 exe(使用 auto-py-to-exe)时,会向我显示这些错误:

An error occurred while packaging
Traceback (most recent call last):
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
    run_pyinstaller()
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\__main__.py", line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\build_main.py", line 734, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\build_main.py", line 681, in build
    exec(code, spec_namespace)
  File "C:\Users\Nima\AppData\Local\Temp\tmp8t9th72t\MyMainapp.spec", line 17, in <module>
    noarchive=True)
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\build_main.py", line 244, in __init__
    self.__postinit__()
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
    self.assemble()
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\building\build_main.py", line 500, in assemble
    for name, path, typecode in compile_py_files(new_toc, CONF['workpath']):
  File "c:\users\nima\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\utils\misc.py", line 152, in compile_py_files


      with open(obj_fnm, 'rb') as fh:
    FileNotFoundError: [Errno 2] No such file or directory: '-'



Project output will not be moved to output folder

Complete.

if someone knows something, please help me.如果有人知道什么,请帮助我。 thank you.谢谢你。

please use the command prompt(terminal) as run as administrator happy coding请使用命令提示符(终端)作为管理员运行快乐编码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM