[go: up one dir, main page]

0% found this document useful (0 votes)
148 views6 pages

Install Python 3.8.5 On Centos7

The document provides steps to install Python 3.8.5 on CentOS 7. It involves installing prerequisite packages like Development Tools, downloading and unzipping the Python 3.8.5 tarball, running the configure script, and making and installing Python. Key steps include installing prerequisite packages like Development Tools using yum, downloading the Python 3.8.5 tarball from the Python website, unzipping it with tar, running ./configure, make, and make install inside the unzipped directory to build and install Python 3.8.5. The installation is validated by checking if Python 3.8.5 is successfully installed.

Uploaded by

Ravindra Malwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views6 pages

Install Python 3.8.5 On Centos7

The document provides steps to install Python 3.8.5 on CentOS 7. It involves installing prerequisite packages like Development Tools, downloading and unzipping the Python 3.8.5 tarball, running the configure script, and making and installing Python. Key steps include installing prerequisite packages like Development Tools using yum, downloading the Python 3.8.5 tarball from the Python website, unzipping it with tar, running ./configure, make, and make install inside the unzipped directory to build and install Python 3.8.5. The installation is validated by checking if Python 3.8.5 is successfully installed.

Uploaded by

Ravindra Malwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

RAVINDRA MALWAL

Topic: Install Python 3.8.5 on Centos7

In this QuickStart:

• Prerequisite
• Download Python 3.8.5 software
• Unzip Tar ball
• Install Python
• Validation

Step-1 prerequisite

- Install required packages


[python@python product]$ sudo yum --
setopt=group_package_types=mandatory,default,optional groupinstall
"Development Tools"
[python@python product]$ sudo yum -y install yum-utils yum-builddep
python zlib-devel gcc

Step-2 Download python 3.8.5 software

https://www.python.org/downloads/source/

- Click on Download

- Click on Linux/Unix
- Click on Zipped or XZ tarball

Step-3 Unzip tar ball


[python@python product]$ ls -ltr
total 17600
-rw-rw-r--. 1 python python 18019640 Jul 31 21:43 Python-3.8.5.tar.xz
[python@python product]$ tar -xvf Python-3.8.5.tar.xz
Python-3.8.5/
Python-3.8.5/CODE_OF_CONDUCT.md
Python-3.8.5/README.rst
Python-3.8.5/Doc/
Python-3.8.5/Doc/howto/
Python-3.8.5/Doc/howto/pyporting.rst
Python-3.8.5/Doc/howto/logging-cookbook.rst
Python-3.8.5/Doc/howto/logging_flow.png
Python-3.8.5/Doc/howto/sorting.rst
.
.
.
.
.
.
Python-3.8.5/Objects/unicodectype.c
Python-3.8.5/Objects/frameobject.c
Python-3.8.5/Objects/longobject.c
Python-3.8.5/Objects/bytearrayobject.c
Python-3.8.5/Objects/setobject.c
Python-3.8.5/Objects/codeobject.c
Python-3.8.5/Objects/rangeobject.c
Python-3.8.5/Objects/listsort.txt
Python-3.8.5/Objects/enumobject.c
Python-3.8.5/Objects/sliceobject.c
Python-3.8.5/Objects/listobject.c
Python-3.8.5/Objects/typeslots.inc
Python-3.8.5/Objects/weakrefobject.c
Python-3.8.5/Objects/unicodeobject.c
Python-3.8.5/Objects/complexobject.c
Python-3.8.5/Objects/picklebufobject.c
Python-3.8.5/Objects/odictobject.c
Python-3.8.5/Objects/genobject.c
[python@python product]$

Step-4 install Python

Go to unzip folder and execute config file

[python@python Python-3.8.5]$ ./configure


checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.8... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "linux"
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for a sed that does not truncate output... /bin/sed
checking for --with-cxx-main=<compiler>... no
checking for g++... no
configure:
By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.
.
.
.
.
.
.
configure: creating ./config.status
config.status: creating Makefile.pre
config.status: creating Misc/python.pc
config.status: creating Misc/python-embed.pc
config.status: creating Misc/python-config.sh
config.status: creating Modules/ld_so_aix
config.status: creating pyconfig.h
creating Modules/Setup.local
creating Makefile
If you want a release build with all stable optimizations active (PGO,
etc),
please run ./configure --enable-optimizations

- Execute Make command

[python@python Python-3.8.5]$ make

- Execute make install command

[python@python Python-3.8.5]$ make install

Step-5 Validation

You might also like