|
1、下载包:
https://www.python.org/ftp/python/3.8.0/
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0a1.tgz
2、解压:
tar -zxvf Python-3.8.0.tgz
3、安装:
cd Python-3.8.0 ./configure --prefix=/usr/local/python3 make && make install
4、建立软连接
ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3 ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3
5、测试一下python3是否可以用
python3
pip3
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-15 11:21
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社