安装python
1 更新树莓派系统
$ sudo apt-get update
$ sudo apt-get upgrade -y
2 安装python环境
$ sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev
3 下载python
#先进行下载
$ wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
#解压
$ tar zxvf Python-3.7.0.tgz
#切换到目录
$ cd Python-3.7.0
#编译
$sudo ./configure
$sudo make
$sudo make install
#升级pip
sudo python3.7 -m pip install upgrade pip