Linux傻瓜式四步完美安装Python3.7
1 安装依赖包
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 gcc
2 下载解压Python3.7
# 1 首先切换到桌面
cd /home
# 2 下载
wget http://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
# 3 解压
tar -xvf Python-3.7.1.tar.xz
# 4 切换目录
cd Python-3.7.1
3 执行配置文件,编译,安装
mkdir /usr/local/python3
./configure --prefix=/usr/local/python3
make
make install
4 建立软连接
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3
原创作者:马一特
文章出处:http://www.cnblogs.com/mayite/
版权声明:自由转载-非商用-非衍生-保持署名
(创意共享4.0许可证)
转载说明:如果文章对您有帮助,欢迎点赞,评论加转载,赠人玫瑰,手留余香