美文网首页
python3安装并设置默认版本 CentOS下

python3安装并设置默认版本 CentOS下

作者: BigJeffWang | 来源:发表于2018-05-30 13:37 被阅读0次
yum install -y 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](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/ && make && make install

rm -rf /usr/bin/python && ln -s /usr/local//bin/python3.6 /usr/bin/python

rm -rf /usr/bin/pip && ln -s /usr/local/bin/pip3.6 /usr/bin/pip

pip install --upgrade pip

python -V

相关文章

网友评论

      本文标题:python3安装并设置默认版本 CentOS下

      本文链接:https://www.haomeiwen.com/subject/pbbtsftx.html