0

重複
の可能性: matplotlib.animation エラー - 指定されたファイルが見つかりません

Python でアニメーション クラスを使用しようとしていますが、save.animation関数に問題があります。ffmpeg.exe他の質問では、問題を解決するために Python パスに呼び出されるアプリケーションをポスターに追加してもらいました。

残念ながら、「pythonパスに何かを追加する」とはどういう意味なのか本当に理解できず、オンラインで検索してもわかりません。

誰か教えてくれませんか?それは大歓迎です!

問題は、私のコードを実行すると次の行になることです:

anim.save('HAMILTONIAN.mp4',fps=5, codec=None, clear_temp=True, 
            frame_prefix='_tmp') 

エラーが発生します:

Traceback (most recent call last):

  File "Z:\desktop\Project\bhmqntm-code\HamiltonianMovie(points_reducedtsegs).py", line 75, in <module>
    anim.save('HAMILTONIAN.mp4',fps=5, codec=None, clear_temp=True, frame_prefix='_tmp')

  File "C:\Python27\lib\site-packages\matplotlib\animation.py", line 127, in save
    self._make_movie(filename, fps, codec, frame_prefix)

  File "C:\Python27\lib\site-packages\matplotlib\animation.py", line 164, in _make_movie
    stdout=PIPE, stderr=PIPE)

  File "C:\Python27\lib\subprocess.py", line 679, in __init__
    errread, errwrite)

  File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
    startupinfo)

WindowsError: [Error 2] The system cannot find the file specified
4

0 に答える 0