FileNotFoundError:[WinError 2]媒体

2024-05-14 01:04:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我想弄清楚文件是不是录像带。当前正在尝试使用pymediainfo,但我遇到了以下错误:

Traceback (most recent call last):
  File "C:/Users/Ankka/Downloads/test.py", line 6, in <module>
    fileInfo = MediaInfo.parse(o)
  File "C:\Python34\lib\site-packages\pymediainfo\__init__.py", line 90, in parse
    p = Popen(command, stdout=fp_out, stderr=fp_err, env=environment)
  File "C:\Python34\lib\subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

我得到这个错误代码:

^{pr2}$

Tags: 文件inpyparseinitlib错误line