Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I add a module to the python path? (on windows)
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/9213554/matplotlib-animation-error-the-system-cannot-find-the-file-specified">matplotlib.animation error - The system cannot find the file specified</a> </p> </blockquote> <p>I'm trying to use the animation class in python and have a problem with the <code>save.animation</code> function. Other questions have had the poster add an application called <code>ffmpeg.exe</code> to the python path to solve the problem. </p> <p>Unfortunately, I really don't understand what it means to "add something to the python path" and can't figure it out from searching online.</p> <p>Would anyone like to enlighten me? It would be much appreciated!</p> <p>The problem is that when running my code the line: </p> <pre><code>anim.save('HAMILTONIAN.mp4',fps=5, codec=None, clear_temp=True, frame_prefix='_tmp') </code></pre> <p>produces the error:</p> <pre><code>Traceback (most recent call last): File "Z:\desktop\Project\bhmqntm-code\HamiltonianMovie(points_reducedtsegs).py", line 75, in &lt;module&gt; 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 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload