配置优化(可选)
A:修改软件的镜像源
在命令行中使用
sudo apt-get update
安装nano编辑器
apt-get install -y nano
不会使用nano编辑器请见文末教程
更新系统软件时,树莓派系统的软件镜像源默认为国外的网站,在中国你有些网络访问不了需要修改成国内的镜像源。
命令行执行
sudo nano /etc/apt/sources.list
开文件,使用#号注释掉原来的官方下载源,增加国内镜像下载源,修改完成保存关闭:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/