<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Install Python 3.7 on Centos 7 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-python-3-7-on-centos-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 04 Oct 2018 13:53:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Install Python 3.7 on centos 7 and Fedora 27/28</title>
		<link>https://www.osradar.com/install-python-3-7-on-centos-7-and-fedora-27-28/</link>
					<comments>https://www.osradar.com/install-python-3-7-on-centos-7-and-fedora-27-28/#comments</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Thu, 05 Jul 2018 20:56:29 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Install Python 3.7 on Centos 7]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4659</guid>

					<description><![CDATA[<p>Python is the  one of the best object-oriented programming language with lots of features which do support in development of web applications as well, and   If you are a programmer or Python Developer  you may  always follow the the last releases witch contain last updates and  new features. i will try to test that on [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-3-7-on-centos-7-and-fedora-27-28/">Install Python 3.7 on centos 7 and Fedora 27/28</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span class="Linkify"> Python is the  one of the best object-oriented programming language with lots of features which do support in development of web applications as well, and  </span> If you are a programmer or Python Developer  you may  always follow the the last releases witch contain last updates and  new features.</p>
<p>i will try to test that on my Centos 7.5  and  python 2.7</p>
<p><img loading="lazy" class="alignnone size-full wp-image-4661" src="https://www.osradar.com/wp-content/uploads/2018/07/python11.png" alt="" width="723" height="148" srcset="https://www.osradar.com/wp-content/uploads/2018/07/python11.png 723w, https://www.osradar.com/wp-content/uploads/2018/07/python11-300x61.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/python11-696x142.png 696w" sizes="(max-width: 723px) 100vw, 723px" /></p>
<p>Downoad the  last Python tar file from</p>
<h2><strong>Step 1 – Requirements</strong></h2>
<p>One of the top  requirement of Python  is the  GCC compiler on your system.  please login to ur system and Download the  needed requirements  for Python</p>
<pre> #yum install gcc openssl-devel bzip2-devel libffi libffi-devel</pre>
<pre>Installing:
bzip2-devel x86_64 1.0.6-13.el7 base 218 k
gcc x86_64 4.8.5-28.el7_5.1 updates 16 M
openssl-devel x86_64 1:1.0.2k-12.el7 base 1.5 M
Installing for dependencies:
cpp x86_64 4.8.5-28.el7_5.1 updates 5.9 M
glibc-devel x86_64 2.17-222.el7 base 1.1 M
glibc-headers x86_64 2.17-222.el7 base 678 k
kernel-headers x86_64 3.10.0-862.6.3.el7 updates 7.1 M
keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
krb5-devel x86_64 1.15.1-19.el7 updates 269 k
libcom_err-devel x86_64 1.42.9-12.el7_5 updates 31 k
libkadm5 x86_64 1.15.1-19.el7 updates 175 k
libmpc x86_64 1.0.1-3.el7 base 51 k
libselinux-devel x86_64 2.5-12.el7 base 186 k
libsepol-devel x86_64 2.5-8.1.el7 base 77 k
libverto-devel x86_64 0.2.5-4.el7 base 12 k
mpfr x86_64 3.1.1-4.el7 base 203 k
pcre-devel x86_64 8.32-17.el7 base 480 k
zlib-devel x86_64 1.2.7-17.el7 base 50 k</pre>
<p>&nbsp;</p>
<h2><strong>Step 2 – Download last python release &#8221; Python 3.7</strong></h2>
<p>Download Python using  from python official site using wget .</p>
<p><img loading="lazy" class="alignnone size-full wp-image-4672" src="https://www.osradar.com/wp-content/uploads/2018/07/python12.png" alt="" width="1123" height="678" srcset="https://www.osradar.com/wp-content/uploads/2018/07/python12.png 1123w, https://www.osradar.com/wp-content/uploads/2018/07/python12-300x181.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/python12-768x464.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/python12-1024x618.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/python12-696x420.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/python12-1068x645.png 1068w" sizes="(max-width: 1123px) 100vw, 1123px" /></p>
<pre>#cd /root 
#wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz</pre>
<p>Now extract  the downloaded file</p>
<pre>#tar xzf Python-3.7.0.tgz</pre>
<h2><strong>Step 3 – Install Python 3.7</strong></h2>
<p>Use below set of commands to compile Python source code on your system using altinstall.</p>
<pre>#cd Python-3.7.0</pre>
<p><strong>Configure</strong></p>
<p>this  action will prepare your prepare the package for the compilation</p>
<pre> #./configure --enable-optimizations
</pre>
<p><strong>Compile the Package</strong></p>
<pre> 
#make altinstall

--------------------------------------------
--------------------------------------------------------
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--altinstall --upgrade" ;; \
install|*) ensurepip="--altinstall" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmpoolx9axs
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-10.0.1 setuptools-39.0.1


</pre>
<p>make altinstall is  very  important to avoid   replacing the default python binary file /usr/bin/python.</p>
<p>This action will take some minutes  to  create the  package</p>
<p>you can also  remove the  Downloaded tar file if your  like  with command  rm</p>
<pre>rm -f /root/Python-3.7.0.tgz</pre>
<h2><strong>Step 4 – Check Python Version</strong></h2>
<p>Check the latest version installed of python. Use command python3.7 instead of just python.</p>
<pre>#python3.7 -V

Python 3.7.0
</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-4665" src="https://www.osradar.com/wp-content/uploads/2018/07/python13.png" alt="" width="755" height="214" srcset="https://www.osradar.com/wp-content/uploads/2018/07/python13.png 755w, https://www.osradar.com/wp-content/uploads/2018/07/python13-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/python13-696x197.png 696w" sizes="(max-width: 755px) 100vw, 755px" /></p>
<h2><strong>Step 5 – Check if yum package still working</strong></h2>
<p>Check if  if  your  original python still working and if  Yum or dnf  package  is not crashed with the new package</p>
<pre>#python -V
#yum install telnet</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-4668" src="https://www.osradar.com/wp-content/uploads/2018/07/python14.png" alt="" width="842" height="519" srcset="https://www.osradar.com/wp-content/uploads/2018/07/python14.png 842w, https://www.osradar.com/wp-content/uploads/2018/07/python14-300x185.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/python14-768x473.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/python14-356x220.png 356w, https://www.osradar.com/wp-content/uploads/2018/07/python14-696x429.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/python14-681x420.png 681w" sizes="(max-width: 842px) 100vw, 842px" /></p>
<p>Please  Enjoy , Cheers !!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-3-7-on-centos-7-and-fedora-27-28/">Install Python 3.7 on centos 7 and Fedora 27/28</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-python-3-7-on-centos-7-and-fedora-27-28/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
