1、安装 tensorflow,利用清华源,linux, anaconda
pip install tensorflow==2.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
2、报错:
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'
解决办法:
pip install tensorflow h5py==2.10.0
3、librosa 报错
raise OSError('sndfile library not found')
OSError: sndfile library not found
解决:降低版本
pip install librosa==0.6.0
4、numba 报错
ModuleNotFoundError: No module named 'numba'
ModuleNotFoundError: No module named 'numba.decorators'
解决:
pip install numba==0.48.0
5、报错,这个错真的纠结好久,久到一天。。。
raise NoBackendError()
audioread.exceptions.NoBackendError
解决:
conda install ffmpeg -c conda-forge