OSError: Unable to download ‘ffmpeg.win32.exe’. Perhaps there is a no internet connection? If there is, please report this problem.解决办法
安装ffmpeg.exe
>>>python
>>>import imageio
>>>imageio.plugins.ffmpeg.download()
出错:
Imageio: 'ffmpeg.win32.exe' was not found on your computer; downloading it now.
Error while fetching file: <urlopen error [Errno 11004] getaddrinfo failed>.
Error while fetching file: <urlopen error [Errno 11004] getaddrinfo failed>.
Error while fetching file: <urlopen error [Errno 11004] getaddrinfo failed>.
Error while fetching file: <urlopen error [Errno 11004] getaddrinfo failed>.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\xiahuadong\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\plugins\ffmpeg.py", line 55, in download
get_remote_file('ffmpeg/' + FNAME_PER_PLATFORM[plat])
File "C:\Users\xiahuadong\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\fetching.py", line 121, in get_remote_file
_fetch_file(url, filename)
File "C:\Users\xiahuadong\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\core\fetching.py", line 177, in _fetch_file
os.path.basename(file_name))
OSError: Unable to download 'ffmpeg.win32.exe'. Perhaps there is a no internet connection? If there is, please report this problem.
解决办法
去到其Github上将缺失的对应的exe文件手动下载并放到对应目录下。
GitHub地址:
https://github.com/imageio/imageio-binaries/tree/master/ffmpeg
下载后,放到C:\Users\用户名\AppData\Local\imageio\ffmpeg文件夹下