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

推荐订阅源

罗磊的独立博客
SecWiki News
SecWiki News
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
量子位
M
MIT News - Artificial intelligence
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
博客园 - 【当耐特】
H
Heimdal Security Blog
腾讯CDC
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
S
Schneier on Security
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cybersecurity and Infrastructure Security Agency CISA
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
Application and Cybersecurity Blog
Application and Cybersecurity Blog
F
Full Disclosure
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threatpost
月光博客
月光博客
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
T
Troy Hunt's Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
D
DataBreaches.Net
O
OpenAI News
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
小众软件
小众软件
V
Vulnerabilities – Threatpost
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
T
The Exploit Database - CXSecurity.com
Martin Fowler
Martin Fowler
美团技术团队
P
Privacy International News Feed

Python - 标签 - cywhat's blog

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 pip安装插件失败,拒绝连接 Centos7.7安装并配置jenkins+python+allure发送定制化报告
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版本

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏