cd /usr/local mkdir python3 wget https://www.python.org/ftp/python/3.9.12/Python-3.9.12.tgz tar -zxvf Python-3.9.12.tgz cd Python-3.9.12 ./configure --prefix=/usr/local/python3 make && make install
# 完成安装后,你会发现python版本还是3.5.3,那是因为没有重新做软连接。 cd /usr/bin/ rm python3 ln -s /usr/local/python3/bin/python3 /usr/bin/python3 ls -l /usr/bin/python3
python3 -V
vim /etc/profile # 添加 export PATH=/usr/local/python3/bin:$PATH
# 任意目录 wget https://sqlite.org/2022/sqlite-autoconf-3380100.tar.gz tar -xvf sqlite-autoconf-3380100.tar.gz cd sqlite-autoconf-3380100 ./configure make && make install
评论