centos7.6安装python3.7

483次阅读
没有评论

详细安装过程如下:
安装依赖环境

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 gcc libffi-devel gcc make automake autoconf libtool libffi-devel

下载安装包

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

解压

tar -zxvf Python-3.7.2.tgz

进来目录

cd Python-3.7.2

初始化环境

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

安装

make && make install

设置软连接

ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3 ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

查看python3版本

python3 -V

centos7.6安装python3.7

神龙|纯净稳定代理IP免费测试>>>>>>>>天启|企业级代理IP免费测试>>>>>>>>IPIPGO|全球住宅代理IP免费测试

相关文章:

版权声明:Python基础教程2022-11-22发表,共计497字。
新手QQ群:570568346,欢迎进群讨论 Python51学习