1.更換鏡像源
sudo nano /etc/apt/sources.list
1.1注釋第一行,添加國內(nèi)源,如下:
#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
按ctrl + o ,enter保存,ctrl + x 關(guān)閉;文章來源:http://www.zghlxwxcb.cn/news/detail-414846.html
1.2更換pip源
sudo mkdir ~/.pip
ls .pip
sudo nano pip.conf
將以下內(nèi)容寫入配置文件(為pip配置阿里和豆瓣源):(保存并退出同上)文章來源地址http://www.zghlxwxcb.cn/news/detail-414846.html
[global]
timeout = 10
index-url = http://mirrors.aliyun.com/py
到了這里,關(guān)于樹莓派4b安裝opencv4.6.0并開啟ffmpeg視頻加速(2022.10.27)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!