简体   繁体   English

为什么yum install python3 install python3.6

[英]Why does yum install python3 install python3.6

I have noticed that yum install python3 or apt-get install python3 python 3.6 but I am unable to understand why it installs this specific version;我注意到yum install python3apt-get install python3 python 3.6但我不明白为什么它会安装这个特定版本; 3.8 is the latest version of python. 3.8是python的最新版本。 Why does it pick 3.6 in specific?为什么具体选择3.6

This just depends on the OS you are using.这仅取决于您使用的操作系统。 Each OS packages a certain version of python and sticks with it.每个操作系统都封装了某个版本的 python 并坚持使用。 For example:例如:

  • CentOS 7: python 3.6 CentOS 7:python 3.6
  • CentOS 8: python 3.6 CentOS 8:python 3.6
  • Ubuntu 16.04: python 3.5 Ubuntu 16.04:python 3.5
  • Ubuntu 18.04: python 3.6 Ubuntu 18.04:python 3.6
  • Ubuntu 20.04: python 3.8 Ubuntu 20.04:python 3.8

NOTE: There are some OS that use rolling releases and that thus will update their default python version, but that is more rare.注意:有些操作系统使用滚动发布,因此会更新其默认 python 版本,但这种情况更为罕见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM