阿里云 centos7 安装 python3

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yan88888888888888888/article/details/88947118

 阿里云 centos7 默认带python2 版本 要安装python 3+,需要 先安装 gcc 

yum -y install gcc

 接下来开始下载 解压缩 编译 创建软连接

wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz

tar -zxvf Python-3.7.3.tgz 

 cd  Python-3.7.3

 ./configure --prefix=/usr/local/python3

 make && make install

 ln -s /usr/local/python3/bin/python3 /usr/bin/python3

 使用命令行 输入 python3

 接下来就可以愉快的码字了

猜你喜欢

转载自blog.csdn.net/yan88888888888888888/article/details/88947118