使用pyinstaller编译时,ffmpeg没有执行clip.run()

时间:2018-09-05 21:18:09

标签: windows python-3.x ffmpeg pyinstaller

在另一台未安装该文件的计算机上执行.exe文件时,运行程序会出现错误:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.py", line 916, in _bootstrap_inner
  File "threading.py", line 864, in run
  File "y2m.py", line 80, in workit
  File "site-packages\ffmpeg\_run.py", line 202, in run
  File "subprocess.py", line 707, in __init__
  File "subprocess.py", line 992, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

我正在使用以下命令编译exe文件:

pyinstaller y2m.py

在这个论坛和其他论坛上,我一直在阅读其他每一篇有关这种问题的文章,但是我似乎没有找到或理解解决此问题的方法。

源代码在here

并且warny2m.txt文件位于here

我尝试过的事情:

  • 使用--paths = pathToLibFolder
  • 使用-w
  • 使用较旧的pyinstaller版本
  • 将python3添加到路径
  • 使用-p DIR添加C:\ Python3 \ Lib位置,然后添加子位置,以及单个脚本。 (通过三种方法查看是否可行)

编辑:

使用ffmpeg \ _run.py时,代码失败。行是clip.run(),其中clip代表输入和输出文件。

0 个答案:

没有答案