2

imageio.plugins.ffmpeg.download()在安装moviepy和imageio并导入imageio没有错误后尝试运行该命令。我不断收到以下错误,无法找出解决方案:

Imageio: 'ffmpeg-osx-v3.2.4' was not found on your computer; downloading it now.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]` certificate verify failed (_ssl.c:726)>.
Error while fetching file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]` certificate verify failed (_ssl.c:726)>.

    ---------------------------------------------------------------------------
    IOError                                   Traceback (most recent call last)
    <ipython-input-1-8b0dfa2efbcc> in <module>()
          3 get_ipython().magic(u'matplotlib inline')
          4 import imageio
    ----> 5 imageio.plugins.ffmpeg.download()
          6 import matplotlib
          7 import matplotlib.pyplot as plt

    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/plugins/ffmpeg.pyc in download(directory, force_download)
        71     get_remote_file(fname=fname,
         72                     directory=directory,
    ---> 73                     force_download=force_download)
        74 
        75 

    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in get_remote_file(fname, directory, force_download, auto)
      125             return filename
       126     else:  # pragma: no cover
   --> 127         _fetch_file(url, filename)
       128         return filename
       129 

    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in _fetch_file(url, file_name, print_destination)
        181         raise IOError('Unable to download %r. Perhaps there is a no internet '
        182                       'connection? If there is, please report this problem.' %
    --> 183                       os.path.basename(file_name))
        184 
        185 

IOError:无法下载“ffmpeg-osx-v3.2.4”。也许没有互联网连接?如果有,请报告此问题。

我尝试了所有我能想到或/并在网上找到的解决方案,包括此处描述的ffmpeg installation on macOS for MoviePy failed with SSL error,但没有任何帮助。有没有人找到另一种解决方案?

谢谢

4

0 回答 0