IT

Centos7安装Python3和pip3

yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar -zxvf Python-3.6.5.tgz
cd Python-3.6.5
mkdir /usr/local/python3
./configure -prefix=/usr/local/python3
sudo make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
python3 --version
pip3 -V

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注