【问题标题】:pyinstaller (auto-py-to-exe) error: Project output will not be moved to output folder?pyinstaller (auto-py-to-exe) 错误:项目输出不会移动到输出文件夹?
【发布时间】:2020-07-24 15:45:02
【问题描述】:
python v3.6.8
PyInstaller v3.6
auto-py-to-exe v2.7.5
os: windows 7

命令:

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

当我想将 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.

如果有人知道什么,请帮助我!谢谢。

【问题讨论】:

标签: python pyinstaller pycrypto auto-py-to-exe


【解决方案1】:

请使用命令提示符(终端)作为 以管理员身份运行 快乐编码

【讨论】:

  • 您能否提供示例或解释为什么以管理员身份运行是该问题的答案?这感觉与 Linux 的“只需使用 sudo”非常相似,这通常被认为是一个糟糕的解决方案。
猜你喜欢
  • 2022-08-16
  • 2020-10-24
  • 2021-11-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-06-14
相关资源
最近更新 更多