基础包
apt-get update
apt-get upgrade
apt-get install build-essential checkinstall
apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
apt-get dist-upgrade
apt-get install build-essential python-dev python-setuptools python-pip python-smbus
apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev
apt-get install zlib1g-dev libsqlite3-dev tk-dev
apt-get install libssl-dev openssl
apt-get install wget
python安装
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
tar zxvf Python-3.7.4.tgz
cd Python-3.7.4
./configure --enable-optimizations
make
make install
python3.7
pip3
pip3 -V
pip
pip -V
python
rm /usr/bin/python
rm /usr/bin/pip
ln -s /usr/local/bin/python3 /usr/bin/python
ln -s /usr/local/bin/pip3 /usr/bin/pip
python
pip -V