如何正确设置?ImageMagick的路径?
Opened this issue · 1 comments
我已找到虚拟环境funclip下的:funclip\lib\site-packages\moviepy\config_defaults.py
import os
IMAGEMAGICK_BINARY = r"C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe"
FFMPEG_BINARY = os.getenv('FFMPEG_BINARY', 'ffmpeg-imageio')
IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', 'auto-detect')
我这样设置后,依然出现:This error can be due to the fact that 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
Keyboard interruption in main thread... closing server.
而我的ImageMagick已经安装在C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\
路径中的\更改为/
FFMPEG_BINARY = os.getenv('FFMPEG_BINARY', 'C:/runtime/ffmpeg-6.0-full_build/bin/ffmpeg.exe')
IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', 'C:/Program Files/ImageMagick-7.1.1-Q16-HDRI/magick.exe')