选择python的版本

Posted msdnchina

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了选择python的版本相关的知识,希望对你有一定的参考价值。

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/using-python3_configuring-basic-system-settings

6.2.3. Configuring the unversioned Python

System administrators can configure the unversioned python command on the system using the alternatives command. Note that the required package, either python3 or python2, needs to be installed before configuring the unversioned command to the respective version.

To configure the unversioned python command to Python 3 directly, run:

alternatives --set python /usr/bin/python3

Use an analogous command if you choose Python 2.

Alternatively, you can configure the unversioned python command interactively:

  1. Run the following command:

    alternatives --config python
  2. Select the required version from the provided list.

To reset this configuration and remove the unversioned python command, run:

alternatives --auto python

以上是关于选择python的版本的主要内容,如果未能解决你的问题,请参考以下文章

如何选择Python版本

如何在 PyCharm 中选择 Python 版本?

Python初学者应该选择哪个版本

我的linux系统装了2个版本的python,我怎么选择我想要的版本

mac版pycharm选择python版本

Pycharm选择pyenv安装的Python版本