Utilizzando questo sito, accetti il politica sulla riservatezza.
Accettare
EnterineEnterineEnterine
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • Microsoft
    • Azzurro
    • ConfigMgr/SCCM
    • Dpm
    • Orchestratore
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Ufficio 365
    • Insider dell'ufficio
    • Potenza BI
    • Skype
    • SQLServer
    • Squadre
  • FINESTRE
    • Centro di amministrazione di Windows
    • Cliente Windows
    • Windows Server
  • Elenco raccolte query SCCM
Lettura: Install Python 3.8 on CentOS 7 Centos 8
Ridimensionamento dei caratteriAa
EnterineEnterine
Ridimensionamento dei caratteriAa
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • Microsoft
  • FINESTRE
  • Elenco raccolte query SCCM
Ricerca
  • CASA
  • PROFESSIONISTA
  • TECNICA
  • Microsoft
    • Azzurro
    • ConfigMgr/SCCM
    • Dpm
    • Orchestratore
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Ufficio 365
    • Insider dell'ufficio
    • Potenza BI
    • Skype
    • SQLServer
    • Squadre
  • FINESTRE
    • Centro di amministrazione di Windows
    • Cliente Windows
    • Windows Server
  • Elenco raccolte query SCCM
Python

Install Python 3.8 on CentOS 7 Centos 8

Pubblicato: Febbraio 18, 2024
2 Lettura minima
CONDIVIDERE

Install Python 3.8 on CentOS 7 Centos 8

Contenuto
Step 1: Install Python DependenciesStep 2: Download the latest Python 3.8 ArchiveStep 3: Install Python 3.8 on CentOS 7 / Centos 8Step 4: Check Python 3.8 on CentOS 8 / Centos 7.

Python works on Windows, Mac, Linux, Raspberry Pi, BS, and many other systems. As of this article update, the latest release of Python is version Python 3.8.12. This is the version of Python that we’ll install in this guide.

Step 1: Install Python Dependencies

As we’ll install Python from the source, let’s install the packages required for Python installation.

sudo yum -y install epel-release
sudo yum -y update

Install build dependencies:

sudo yum -y groupinstall "Development Tools"
sudo yum -y install openssl-devel bzip2-devel libffi-devel xz-devel

Confirm gcc is available:

$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Step 2: Download the latest Python 3.8 Archive

Now download the latest archive of the Python 3.8 pubblicazione.

sudo yum -y install wget
wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz

Extract the package.

tar xvf Python-3.8.12.tgz

Change the created directory:

cd Python-3.8*/

Step 3: Install Python 3.8 on CentOS 7 / Centos 8

Setup installation by running the configure script.

./configure --enable-optimizations

Initiate compilation of Python 3.8.

sudo make altinstall

If this was successful, you should get a message like below:

.....
Looking in links: /tmp/tmpy9yqf1bp
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-19.2.3 setuptools-41.2.0

Step 4: Check Python 3.8 on CentOS 8 / Centos 7.

Confirm that the installation of Python 3.8 on CentOS 8 / Centos 7 was successful.

$ python3.8 --version
Python 3.8.12

Pip is also installed.

$ pip3.8 --version
pip 19.2.3 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
TAGGATO:CentosPythonYUM
Articolo precedente Disable weak SSH encryption algorithms
Articolo successivo AssertionError: database connection isn’t set to UTC
Lascia un commento Lascia un commento

Lascia una risposta Annulla risposta

Il tuo indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito utilizza Akismet per ridurre lo spam. Scopri come vengono elaborati i dati dei tuoi commenti.

Traduzione

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
di Transposh - plugin di traduzione per wordpress

Post popolari

Requisiti di sistema per Windows Server 2016
Windows Server
Elenco raccolte query di Gestione configurazione
Elenco raccolte query di Gestione configurazione
ConfigMgr
Navigazione strutturata/gestita abilitata nelle pagine moderne nei siti del team classici
Tecnologia
SCCM Impossibile ottenere le posizioni DP come versione prevista da MP
ConfigMgr

Post recenti

Elenco raccolte query di Gestione configurazione
System Center Configuration Manager Technical Preview Update 1611
ConfigMgr
Installazione e configurazione di Fail2ban per la protezione SSH su Ubuntu 24.04
Linux
Come controllare il fuso orario in Linux
Linux
Abilitazione e configurazione di FirewallD su AlmaLinux
Linux

© 2023 Enterine

Vai alla versione mobile
Bentornato!

Accedi al tuo account

Nome utente o indirizzo e-mail
Password

Hai perso la password?