OSError: Unable to download 'ffmpeg.win32.exe'. Perhaps there is a no internet connection? If there

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
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-lEbgnCsc-1589441201100)(C:\Users\xiahuadong\Pictures\截图\172.png)]
下载后,放到C:\Users\用户名\AppData\Local\imageio\ffmpeg文件夹下

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夏华东的博客

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值