python - MoviePY 无法在 Windows 上检测 ImageMagick 二进制文件

标签 python imagemagick moviepy

我刚刚买了一台新笔记本电脑,想在新的 Windows 64x (Python3.7.0) 机器上设置 MoviePY。我对所有内容进行了三次检查,但是当涉及到我的代码的文本部分时,它向我抛出了该错误;

OSError: MoviePy Error: creation of None failed because of the following error:

OSError: [WinError 6] The handle is invalid

"ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect"

我的config_defaults.py文件;

import os
FFMPEG_BINARY = os.getenv('FFMPEG_BINARY', 'ffmpeg-imageio')
#IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', 'auto-detect')
IMAGEMAGICK_BINARY = "C:\\Program Files\\ImageMagick-7.0.8-Q16\\magick.exe"

路径正确,并且 magick.execonvert.exe 都存在于该路径中。我还确信 ImageMagick 已正确安装。当我在cmd中输入convert时,它会打印“ImageMagick 7.0.8 Q16 x64”和一堆其他内容。

我在这里缺少什么?

最佳答案

我遇到了与您相同的错误,但我的问题是我没有正确安装 ImageMagick :在安装向导中,您需要选中“安装旧版实用程序”。

所以我重新安装了它,选中了此框,它起作用了。

这是我正在谈论的页面的屏幕截图:enter image description here

关于python - MoviePY 无法在 Windows 上检测 ImageMagick 二进制文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51928807/

相关文章:

python - 基于每行类别的 pandas 样本

python - pandas 重复删除nans

r - R中的正方体无法识别 "&"

python - 在 python/PIL 中执行与 ImageMagick 的 "-level"相同的操作?

python - Django Crispy Forms 类型错误 : __init__() got an unexpected keyword argument 'instance'

从字典中查找加权最小值和最大值键的 Pythonic 方法

linux - 在 ubuntu 上使用 convert 调整带有填充的图像大小

python - 每当尝试将 write_videofile 运行到 moviepy 中的剪辑时,都会出现 "TypeError: must be real number, not NoneType"

python - 电影Py错误: FFMPEG permission error

python - 将MoviePy添加到剪辑时无音频