centos7 安装python3.8

#cd /usr/local
#yum -y groupinstall "Development tools"
#yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
#yum install libffi-devel -y
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
#mkdir python3
#tar -xvzf  Python-3.8.1.tgz
#cd Python-3.8.1
#./configure --prefix=/usr/local/python3
#make && make install
#ln -s /usr/local/python3/bin/python3 /usr/bin/python3
# ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
#python3 -V
Python 3.8.1
#pip3 -V
pip 24.0 from /usr/local/python3/lib/python3.8/site-packages/pip (python 3.8)
#pip3 install --upgrade pip

  

posted @ 2024-03-03 17:38  tochenwei  阅读(243)  评论(0编辑  收藏  举报