python应用运行报错,部分信息如下:Traceback (most recent call last):
File “scripts\inference.py”, line 40, in
from hallo.datasets.audio_processor import AudioProcessor
File “\site-packages\hallo\datasets\audio_processor.py”, line 19, in
from hallo.utils.util import resample_audio
File “lib\site-packages\hallo\utils\util.py”, line 80, in
from moviepy.editor import AudioFileClip, VideoClip
ModuleNotFoundError: No module named ‘moviepy’
错误信息显示系统缺少moviepy模块,但是检查环境发现已经安装了moviepy了,把moviepy卸载重装,先运行:
pip uninstall moviepy
然后再运行如下命令:
pip3 install moviepy
安装完成,重新运行应用不再报缺少moviepy错误,应该是pip版本问题了