centos安装python3.7

1.安装openssl11

yum 安装 openssl 1.1.1k

2.安装依赖

1
yum install xz-devel zlib-devel bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel -y

3.安装python3.7

1
2
3
4
5
6
7
8
9
10
11
12
13
wget https://www.python.org/ftp/python/3.7.17/Python-3.7.17.tgz
 
tar -zxvf Python-3.7.17.tgz
 
cd Python-3.7.17
 
./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.7 /usr/bin/pip

 

posted @   NAVYSUMMER  阅读(164)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
交流群 编程书籍
点击右上角即可分享
微信分享提示