<?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>python3 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/python3/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 25 Sep 2018 08:43:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Get the Latest Python on Linux</title>
		<link>https://www.osradar.com/get-the-latest-python-on-linux/</link>
					<comments>https://www.osradar.com/get-the-latest-python-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Tue, 25 Sep 2018 08:43:52 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[install latest python]]></category>
		<category><![CDATA[install python]]></category>
		<category><![CDATA[install python on linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python3]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6016</guid>

					<description><![CDATA[<p>Python is one of the most popular programming and scripting languages for all purposes. There are a number of tools you are working with that depends on Python. It’s so common and powerful that all the Linux distros come up with a pre-installed version of Python. Today, let’s have a look at getting the latest [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/get-the-latest-python-on-linux/">Get the Latest Python on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Python is one of the most popular programming and scripting languages for all purposes. There are a number of tools you are working with that depends on Python. It’s so common and powerful that all the Linux distros come up with a pre-installed version of Python.</p>
<p>Today, let’s have a look at getting the latest version of Python in our Linux distro.</p>
<h1>Installing Python</h1>
<p>There are 2 available ways you can get Python – from the repo of the distro and building from the source. Some distros like Ubuntu, Debian, and Fedora etc. comes up with Python in their software repository. In the case of others, it’s the best to install Python from source.</p>
<h1>Installing from distro repository</h1>
<p>Run the following commands according to your Linux distro –</p>
<ul>
<li>Ubuntu</li>
</ul>
<pre class="">sudo apt update &amp;&amp; sudo apt upgrade -y

# Python 3
sudo apt install python3
OR
sudo apt install python3.7

# Python 2
sudo apt install python</pre>
<p><img loading="lazy" class="size-full wp-image-6018 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/09/python-1.png" alt="" width="1058" height="443" srcset="https://www.osradar.com/wp-content/uploads/2018/09/python-1.png 1058w, https://www.osradar.com/wp-content/uploads/2018/09/python-1-300x126.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/python-1-768x322.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/python-1-1024x429.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/python-1-696x291.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/python-1-1003x420.png 1003w" sizes="(max-width: 1058px) 100vw, 1058px" /></p>
<p><img loading="lazy" class="size-full wp-image-6019 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/09/python-2.png" alt="" width="1055" height="173" srcset="https://www.osradar.com/wp-content/uploads/2018/09/python-2.png 1055w, https://www.osradar.com/wp-content/uploads/2018/09/python-2-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/python-2-768x126.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/python-2-1024x168.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/python-2-696x114.png 696w" sizes="(max-width: 1055px) 100vw, 1055px" /></p>
<p><img loading="lazy" class="size-full wp-image-6020 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/09/python-3.png" alt="" width="1060" height="687" srcset="https://www.osradar.com/wp-content/uploads/2018/09/python-3.png 1060w, https://www.osradar.com/wp-content/uploads/2018/09/python-3-300x194.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/python-3-768x498.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/python-3-1024x664.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/python-3-696x451.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/python-3-648x420.png 648w" sizes="(max-width: 1060px) 100vw, 1060px" /></p>
<ul>
<li>Debian</li>
</ul>
<pre class="">sudo apt-get install python3</pre>
<ul>
<li>OpenSUSE</li>
</ul>
<pre class="">sudo zypper install python3</pre>
<ul>
<li>Fedora</li>
</ul>
<pre class="">sudo dnf install python37</pre>
<ul>
<li>Arch Linux</li>
</ul>
<pre class="">sudo pacman -S python</pre>
<h1>Installing Python from source</h1>
<p>At first, make sure that your system has all the required dependencies to build Python from source –</p>
<ul>
<li>Ubuntu</li>
</ul>
<pre class="">sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
<li>Debian</li>
</ul>
<pre class="">sudo apt-get install make build-essential libssl-dev zlib1g-dev libbz2-dev</pre>
<ul>
<li>OpenSUSE</li>
</ul>
<pre class="">sudu zypper install -t pattern devel_C_C++</pre>
<ul>
<li>CentOS</li>
</ul>
<pre class="">sudo yum update
sudo yum -y groupinstall development
sudo yum -y install zlib-devel
</pre>
<p>Now, download the latest source package of Python –</p>
<pre class="">wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz</pre>
<p><img loading="lazy" class="size-full wp-image-6021 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/09/python-4.png" alt="" width="1059" height="288" srcset="https://www.osradar.com/wp-content/uploads/2018/09/python-4.png 1059w, https://www.osradar.com/wp-content/uploads/2018/09/python-4-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/python-4-768x209.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/python-4-1024x278.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/python-4-696x189.png 696w" sizes="(max-width: 1059px) 100vw, 1059px" /></p>
<p>Extract the archive –</p>
<pre class="">tar -xvf Python-3.7.0.tar.xz</pre>
<p><img loading="lazy" class="size-full wp-image-6022 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/09/python-5.png" alt="" width="1060" height="687" srcset="https://www.osradar.com/wp-content/uploads/2018/09/python-5.png 1060w, https://www.osradar.com/wp-content/uploads/2018/09/python-5-300x194.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/python-5-768x498.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/python-5-1024x664.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/python-5-696x451.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/python-5-648x420.png 648w" sizes="(max-width: 1060px) 100vw, 1060px" /></p>
<p>Build the source –</p>
<pre class="">./configure --enable-optimizations --with-ensurepip=install
make -j4
make test</pre>
<p><img loading="lazy" class="size-full wp-image-6024 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/09/python-7.png" alt="" width="1060" height="721" srcset="https://www.osradar.com/wp-content/uploads/2018/09/python-7.png 1060w, https://www.osradar.com/wp-content/uploads/2018/09/python-7-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/python-7-768x522.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/python-7-1024x697.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/python-7-696x473.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/python-7-617x420.png 617w" sizes="(max-width: 1060px) 100vw, 1060px" /></p>
<p>Install the package –</p>
<pre class="">sudo make altinstall</pre>
<h1>Testing Python</h1>
<p>Depending on the version you installed, run the following command(s) to verify that Python is available system-wide.</p>
<pre class="">python --version
OR
python3 --version</pre>
<p><img loading="lazy" class="size-full wp-image-6025 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/09/python-8.png" alt="" width="1058" height="181" srcset="https://www.osradar.com/wp-content/uploads/2018/09/python-8.png 1058w, https://www.osradar.com/wp-content/uploads/2018/09/python-8-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/python-8-768x131.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/python-8-1024x175.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/python-8-696x119.png 696w" sizes="(max-width: 1058px) 100vw, 1058px" /></p>
<p>Voila! Python is installed successfully!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/get-the-latest-python-on-linux/">Get the Latest Python on Linux</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/get-the-latest-python-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
