Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

install python 3.7 centos

# install requirements
yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel xz-devel

# Download python version
cd /usr/src  
wget https://www.python.org/ftp/python/3.7.13/Python-3.7.13.tgz
# extract package
tar xzf Python-3.7.11.tgz 

# Install Python
cd Python-3.7.11 
./configure --enable-optimizations 
make altinstall # Used to prevent replacing the default python binary file /usr/bin/python.
rm /usr/src/Python-3.7.11.tgz 
Source by tecadmin.net #
 
PREVIOUS NEXT
Tagged: #install #python #centos
ADD COMMENT
Topic
Name
5+3 =