网站首页 > 基础教程 正文
系统默认安装了python2,现需要python3,可以采用如下命令安装。
默认可以上网。
╰─ sudo yum install python3.x86_64
[sudo] password for zhaozhonghai:
Loaded plugins: axelget, fastestmirror, langpacks, product-id, search-disabled-
: repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No metadata available for base
No metadata available for extras
No metadata available for updates
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package python3.x86_64 0:3.6.8-19.el7_9 will be installed
--> Processing Dependency: python3-libs(x86-64) = 3.6.8-19.el7_9 for package: python3-3.6.8-19.el7_9.x86_64
--> Processing Dependency: python3-setuptools for package: python3-3.6.8-19.el7_9.x86_64
--> Processing Dependency: python3-pip for package: python3-3.6.8-19.el7_9.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python3-3.6.8-19.el7_9.x86_64
--> Running transaction check
---> Package python3-libs.x86_64 0:3.6.8-19.el7_9 will be installed
---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed
---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
python3 x86_64 3.6.8-19.el7_9 updates 70 k
Installing for dependencies:
python3-libs x86_64 3.6.8-19.el7_9 updates 6.9 M
python3-pip noarch 9.0.3-8.el7 base 1.6 M
python3-setuptools noarch 39.2.0-10.el7 base 629 k
Transaction Summary
================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 9.3 M
Installed size: 47 M
Is this ok [y/d/N]: y
Downloading packages:
python3-pip-9.0.3-8.el7.noarch.rpm | 0 B 00:30 ...
python3-setuptools-39.2.0-10.el7.noarch.rpm | 0 B 00:30 ...
python3-libs-3.6.8-19.el7_9.x86_64.rpm | 0 B 00:30 ...
No Presto metadata available for base
No Presto metadata available for updates
(1/4): python3-3.6.8-19.el7_9.x86_64.rpm | 70 kB 00:00
(2/4): python3-setuptools-39.2.0-10.el7.noarch.rpm | 629 kB 00:00
(3/4): python3-pip-9.0.3-8.el7.noarch.rpm | 1.6 MB 00:01
(4/4): python3-libs-3.6.8-19.el7_9.x86_64.rpm | 6.9 MB 00:02
--------------------------------------------------------------------------------
Total 3.3 MB/s | 9.3 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python3-setuptools-39.2.0-10.el7.noarch 1/4
Installing : python3-libs-3.6.8-19.el7_9.x86_64 2/4
Installing : python3-3.6.8-19.el7_9.x86_64 3/4
Installing : python3-pip-9.0.3-8.el7.noarch 4/4
Verifying : python3-pip-9.0.3-8.el7.noarch 1/4
Verifying : python3-3.6.8-19.el7_9.x86_64 2/4
Verifying : python3-setuptools-39.2.0-10.el7.noarch 3/4
Verifying : python3-libs-3.6.8-19.el7_9.x86_64 4/4
Installed:
python3.x86_64 0:3.6.8-19.el7_9
Dependency Installed:
python3-libs.x86_64 0:3.6.8-19.el7_9 python3-pip.noarch 0:9.0.3-8.el7
python3-setuptools.noarch 0:39.2.0-10.el7
Complete!
╰─ python3
Python 3.6.8 (default, Jun 20 2023, 11:53:23)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
- 上一篇: Spring AOP 中的代理对象是怎么创建出来的?
- 下一篇: js扫描识别条形码(js实现扫一扫)
猜你喜欢
- 2025-01-23 Kubernetes数据卷与持久卷(kubernetes 持久化存储组件)
- 2025-01-23 SpringCloud 网关组件 Gateway 原理深度解析
- 2025-01-23 【温达】插件制作-添加系统级菜单
- 2025-01-23 js 调用本地摄像头通过canvas进行截图
- 2025-01-23 比 mydumper 更快的多线程逻辑备份工具-MySQL Shell Dump & Load
- 2025-01-23 kratos源码分析系列(1)(leakcanary源码分析)
- 2025-01-23 JVM实战—12.OOM的定位和解决(jvm oom dump)
- 2025-01-23 js扫描识别条形码(js实现扫一扫)
- 2025-01-23 Spring AOP 中的代理对象是怎么创建出来的?
- 2025-01-23 Elasticsearch 8集群搭建、安全功能配置详述
- 05-162025前端最新面试题之HTML和CSS篇
- 05-16大数据开发基础之HTML基础知识
- 05-16微软专家告诉你Win10 Edge浏览器和EdgeHTML的区别
- 05-16快速免费将网站部署到公网方法(仅支持HTML,CSS,JS)
- 05-16《从零开始学前端:HTML+CSS+JavaScript的黄金三角》
- 05-16一个简单的标准 HTML 设计参考
- 05-16css入门
- 05-16前端-干货分享:更牛逼的CSS管理方法-层(CSS Layers)
- 最近发表
- 标签列表
-
- jsp (69)
- pythonlist (60)
- gitpush (78)
- gitreset (66)
- python字典 (67)
- dockercp (63)
- gitclone命令 (63)
- dockersave (62)
- linux命令大全 (65)
- pythonif (86)
- location.href (69)
- dockerexec (65)
- deletesql (62)
- c++模板 (62)
- linuxgzip (68)
- 字符串连接 (73)
- nginx配置文件详解 (61)
- html标签 (69)
- c++初始化列表 (64)
- mysqlinnodbmyisam区别 (63)
- arraylistadd (66)
- console.table (62)
- mysqldatesub函数 (63)
- window10java环境变量设置 (66)
- c++虚函数和纯虚函数的区别 (66)