我正在尝试创建一个文本夹。但它给了我这个错误:
>>> from moviepy.editor import *
>>> text = (TextClip("asdasda",color='white').set_pos((20,190)))
[MoviePy] This command returned an error !Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/moviepy/video/VideoClip.py", line 1173, in __init__
raise IOError(error)
IOError: MoviePy Error: creation of None failed because of the following error:
convert: not authorized `@/tmp/tmpTs7EU5.txt' @ error/property.c/InterpretImageProperties/3405.
convert: no images defined `PNG32:/tmp/tmpy1f1J0.png' @ error/convert.c/ConvertImageCommand/3210.
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
最后一行说我没有安装ImageMagick。但我已经使用此命令sudo apt-get install libmagickwand-dev
安装并正常安装。我还通常通过moviepy
安装pip install moviepy
。我还安装了pip install Wand
。