在另一台未安装该文件的计算机上执行.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
中我尝试过的事情:
编辑:
使用ffmpeg \ _run.py时,代码失败。行是clip.run()
,其中clip代表输入和输出文件。