Python is a programming language and most of the places it is being used. You can download and install the python from www.python.org.
The current version is 3.8.2 if you want to install in the production environment go for a stable version such as 3.7.x.
You will find the latest release of Python;
1 — Install Prerequisite
GCC complier needs to run python on your system. you can run this command to install the GCC compiler on your system.
# sudo yum install gcc openssl-devel bzip2-devel libffi-devel
2 — Download Python 3.8.X
[poweruser]$ cd /usr/src
[src]$ sudo wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz
[src]$ sudo tar xzf Python-3.8.2.tgz #extract the tarball file.
3. Install Python
change to Python extract directory.
[src]$ cd Python-3.8.2
Python has recently added a new configure argument called
--enable-optimizations.
[Python-3.8.2]$ sudo ./configure — enable-optimizations
[Python-3.8.2]$ sudo make altinstall
[Python-3.8.2]$ python3.8 -V # get the version details.
Comments
Post a Comment