樹莓派基礎操作

1. 樹莓派基礎操作

1.1. 更換apt源

編輯/etc/apt/sources.list文件,將地址變更爲http://mirrors.ustc.edu.cn/raspbian/raspbian/

deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
編輯/etc/apt/sources.list.d/raspi.list,將地址變更爲http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main
deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main

1.2. 更換pip源

更換阿里pip源

mkdir ~/.pip
cat > ~/.pip/pip.conf << EOF
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
EOF
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章