Instalación compatible de Python3 en CentOS

 

yum instalar yum-utils

yum-builddep python

curl -O https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz

tar xf Python-3.9.1.tgz

cd Python-3.9.1

./configurar

hacer

hacer la instalación

Nota: el directorio de referencia del paquete de código fuente es: https://www.python.org/ftp/python/

Comprobación de finalización de la instalación:

[root@yang Python-3.9.1]# python3 -V
Python 3.9.1
[root@yang Python-3.9.1]# pip3 -V
pip 20.2.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

 

Supongo que te gusta

Origin blog.csdn.net/xlyrh/article/details/113528808
Recomendado
Clasificación