centos7 安装 python3
Posted 震撼起飞
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7 安装 python3相关的知识,希望对你有一定的参考价值。
sudo yum -y groupinstall "Development tools" sudo 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 libffi-devel ##### https://www.python.org/ftp/python/ 选择要安装的版本 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0a1.tar.xz cd ~/Download tar -xvJf Python-3.7.0a1.tar.xz cd Python-3.7.0a1 ./configure --prefix=/usr/local/bin/python3 sudo make sudo make install ### 创建软连接 ln -s /usr/local/bin/python3/bin/python3 /usr/bin/python3 ln -s /usr/local/bin/python3/bin/pip3 /usr/bin/pip3
以上是关于centos7 安装 python3的主要内容,如果未能解决你的问题,请参考以下文章