首先要安装号pip3
sudo apt install python3-pip
找不到满意的版本,可能是pip需要升级了,所以使用
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U pip
1、安装vosk
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U vosk
2、安装yuo-get
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U you-get
如果发现还是不行,会报相同的错误:
这时考虑到可能是网络的问题,我的网有时候是不稳定的,因此用国内的镜像源来加速
pip3 install 包名 -i http://pypi.douban.com/simple/--trusted-host pypi.douban.com