0

也许这是一个初学者的问题,对不起...

在 Windows 10 上,我尝试使用 Qt5 和 fbs(python 3.7、64 位)构建可执行文件。

我使用 pip 安装了 Qt5 和 fbs。

  1. fbs startproject - 工作
  2. fbs 运行 - 工作
  3. fbs 冻结 - 出现以下错误:
Traceback (most recent call last):
File "c:\am\python37-64\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec)
File "c:\am\python37-64\lib\runpy.py", line 85, in _run_code exec(code, run_globals)
File "C:\AM\Python37-64\Scripts\fbs.exe\__main__.py", line 9, in <module>
File "c:\am\python37-64\lib\site-packages\fbs\__main__.py", line 17, in _main fbs.cmdline.main()
File "c:\am\python37-64\lib\site-packages\fbs\cmdline.py", line 32, in main fn(*args)
File "c:\am\python37-64\lib\site-packages\fbs\builtin_commands\__init__.py", line 120, in freeze freeze_windows(debug=debug)
File "c:\am\python37-64\lib\site-packages\fbs\freeze\windows.py", line 18, in freeze_windows run_pyinstaller(args, debug)
File "c:\am\python37-64\lib\site-packages\fbs\freeze\__init__.py", line 47, in run_pyinstaller run(args, check=True)
File "c:\am\python37-64\lib\subprocess.py", line 472, in run with Popen(*popenargs, **kwargs) as process:
File "c:\am\python37-64\lib\subprocess.py", line 775, in __init__ restore_signals, start_new_session)
File "c:\am\python37-64\lib\subprocess.py", line 1178, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden

确实没有文件lib\runpy.py,但是如何获取呢?

谢谢

4

0 回答 0