惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

Python - 分类 - cywhat's blog

Linux卸载RabbitMQ Linux安装RabbitMQ Linux忘记mysql密码解决办法 MoudleNotFoundError: No module named 'xxx' Python如何让字典保持有序存储 Python获取当前位置所在行数以及函数名 Linux卸载python ModuleNotFoundError: No Module Named '_Ctypes' Make: *** [Install] 错误 1 zipimport.ZipImportError: can't decompress data; zlib not available make: *** [install] 错误 1
Linux安装python3.7
cywhat · 2021-12-23 · via Python - 分类 - cywhat's blog

前景

**新服务器搭建Django Web服务需要安装python3.7.0

1.前置条件(一定要在安装之前)

安装python需要依赖(-y:安装过程中不需要再次输入y确认)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
yum update

yum upgrade

yum install zlib* -y 

yum install libffi-devel -y 

yum install openssl-devel -y 

yum install install build-essential python-dev python-setuptools python-pip python-smbus -y

2.下载Python3.7.0

a.下载方式1

下载地址

下载文件,然后上传到服务器

b.下载方式2

1
wegt https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz.xz

3.安装Python3.7.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#1.解压文件
tar -xvJf Python-3.7.0.tgz.xz

#如文件结尾为`tgz`,使用以下解压命令
tar -zvxf Python-3.7.0.tgz

#2.配置安装python3的路径
cd Python-3.7.0

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

#3.编译安装
make && make install

PS:这里要确认编译安装完一定出现succeeful,请确认是否安装成功,如安装不成功可能会出现错误具体错误信息请自行百度或者查看博主其他python标签下的文章

4.配置软链接

1
2
3
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3

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

5.检查Python版本

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏