windows安装moviepy报错处理

首先,安装moviepy之后会报错:

RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'

这是因为imageio-ffmpeg的版本不对,安装pip install imageio==2.4.1这个版本就能解决

然后报错:Unable to download 'ffmpeg-win32-v3.2.4.exe'. Perhaps there is a no internet connection? If there is, please report this problem.

这是程序自动安装ffmpeg-win32-v3.2.4.exe时,timed out报的错,多运行几遍程序,安装好之后就没有问题了

最后报错:ImportError: Imageio Pillow plugin requires Pillow, not PIL!

pip install pillow 会发现pillow已经安装了

为什么报错呢?因为moviepy使用的pillow和之前安装好的pillow不在同一个路径下

File "D:\Anaconda2\lib\site-packages\imageio\plugins\pillow.py", line 83, in _init_pillow
    "Imageio Pillow plugin requires " "Pillow, not PIL!"
ImportError: Imageio Pillow plugin requires Pillow, not PIL!    这里是运行程序报错的pillow路径

注意路径是:Anaconda2\lib\site-packages

而pip install pillow时,显示Requirement already satisfied (use --upgrade to upgrade): pillow in anaconda2\lib\site-packages

故:pip install --target=Anaconda2\lib\site-packages\ --upgrade pillow  这样装一下pillow就可以了。

再次运行程序,完美运行!

 

 

你可能感兴趣的:(工作总结)