Google colab 运行Wav2Lip项目问题以及解决方法
Google colab 运行Wav2Lip项目问题以及解决方法
requirem.txt内的软件包安装
librosa==0.7.0
numpy==1.17.1
opencv-contrib-python>=4.2.0.34
opencv-python==4.1.0.25
torch==1.1.0
torchvision==0.3.0
tqdm==4.45.0
numba==0.48
这些软件包需要python3.7版本,需要更改colab的python版本
安装下载python3.7
下载python3.7
!apt-get install python3.7
切换python版本
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
!sudo update-alternatives --config python3

查看版本
!python --version
ModuleNotFoundError: No module named ‘pip‘
手动安装
!python -m ensurepip --upgrade
此命令会自动安装或升级python中的pip
ModuleNotFoundError: No module named ‘ensurepip‘
下载安装脚本
!curl https://bootstrap.pypa.io/pip/3.7/get-pip.py -o get-pip.py
!python get-pip.py
ModuleNotFoundError: No module named 'distutils.cmd'
安装的包需要是python3.7
!apt-get install python3.7-distutil
没有属性 ‘_registerMatType‘
!pip uninstall opencv-python-headless
!pip install opencv-python-headless==4.1.2.30
RuntimeError: unexpected EOF, expected 9399317 more bytes. The file might be corrupted.
预训练模型文件损坏,将之前的文件删除,重现下载

浙公网安备 33010602011771号