CentOS7安装Python3.7
2021-05-16 00:28
标签:number read proc line openssl ncurses server bash http 首先安装依赖包,centos里面是-devel,如果在ubuntu下安装则要改成-dev,依赖包缺一不可,笔者曾安装python3未成功就是因为没有安装libffi-devel 然后获取python3.7的安装包 解压 配置python3的安装目录并安装 创建软链接 出现上面就表示成功!!! CentOS7安装Python3.7 标签:number read proc line openssl ncurses server bash http 原文地址:https://www.cnblogs.com/bbox/p/9750325.htmlyum -y install gcc zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar -xvJf Python-3.7.0.tar.xz
cd Python-3.7.0
./configure --prefix=/usr/local/bin/python3
make
make install
ln -s /usr/local/bin/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/bin/python3/bin/pip3 /usr/bin/pip3
上一篇:算法复习之坐标离散化
下一篇:2024.C语言合法标识符