<?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>tensorflow Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/tensorflow/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 16 Jan 2020 19:22:17 +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>How to install Tensorflow on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 22 Jan 2020 23:55:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tensorflow]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17009</guid>

					<description><![CDATA[<p>Hi, folks. This time you will learn how to install Tensorflow on Ubuntu 18.04. According to the project website, &#8220;Tensorflow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/">How to install Tensorflow on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hi, folks. This time you will learn how to install Tensorflow on Ubuntu 18.04.</strong></p>
<p>According to the <a href="https://www.tensorflow.org/" target="_blank" rel="noopener noreferrer">project website</a>, &#8220;<strong>Tensorflow is an end-to-end open source platform for machine learning</strong>. It has a comprehensive, flexible ecosystem of tools, libraries and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML powered applications&#8221;.</p>
<p>Therefore, with Tensorflow you can build neural networks to decipher patterns used by humans. It is also important to say that,<strong> it is open-source and is currently used by Google, which shows us the power of it.</strong></p>
<p>Tensorflow is very efficient in managing computer resources because it allows you to deploy computing to one or more CPUs or GPUs on desktops, servers, or mobile devices with a single API.</p>
<p>So, if you&#8217;re going to work with it, or are curious about this technology, it&#8217;s a good idea to know how to install it.</p>
<h2>Install Tensorflow on Ubuntu 18.04</h2>
<h3>Preparing the environment</h3>
<p>Tensorflow is built on <a href="https://www.osradar.com/tag/python" target="_blank" rel="noopener noreferrer">Python</a> and requires at least version 3.4. So first we&#8217;ll make sure it&#8217;s installed and what version the system has.</p>
<pre>:~$ python3 -V<br>python 3.6.9</pre>
<p>Therefore, we have a compatible version so the installation will happen without problems.</p>
<p>Then we will install some packages needed to perform the installation of Tensorflow. One of them is Pip that will serve us as a package manager to install it.</p>
<pre>:~$ sudo apt install python3-venv python3-pip</pre>
<figure id="attachment_17617" aria-describedby="caption-attachment-17617" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17617" src="https://www.osradar.com/wp-content/uploads/2020/01/1-12.png" alt="1.- Installing the python packages" width="1365" height="463" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-12.png 1365w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-300x102.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-1024x347.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-768x261.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-696x236.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-1068x362.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-1238x420.png 1238w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-17617" class="wp-caption-text">1.- Installing the python packages</figcaption></figure>
<p>Once these packages are installed, we need to create a virtual Python environment and in it install Tensorflow. This is the safest way to do the installation.</p>
<p>First, create a folder for it:</p>
<pre>~$ mkdir tensorflow</pre>
<p>Then access the folder:</p>
<pre>:~$ cd tensorflow</pre>
<p>Now we will create the virtual environment inside this folder with the following command:</p>
<pre>:~$ python3 -m venv venv</pre>
<p>And finally, we activate it with the following command:</p>
<pre>:~$ source venv/bin/activate</pre>
<figure id="attachment_17619" aria-describedby="caption-attachment-17619" style="width: 790px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17619" src="https://www.osradar.com/wp-content/uploads/2020/01/2-11.png" alt="2.- Enabling the python virtual environment" width="790" height="131" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-11.png 790w, https://www.osradar.com/wp-content/uploads/2020/01/2-11-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-11-768x127.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-11-696x115.png 696w" sizes="(max-width: 790px) 100vw, 790px" /><figcaption id="caption-attachment-17619" class="wp-caption-text">2.- Enabling the python virtual environment</figcaption></figure>
<p>Now we can install Tensorflow on Ubuntu 18.04.</p>
<h3>Getting Tensorflow on Ubuntu 18.04</h3>
<p>Once inside the virtual environment, we proceed to install Tensorflow as follows using Pip.</p>
<pre>:~$ pip install tensorflow</pre>
<p>This will install the current version of the package.</p>
<p>To verify that everything went well, use the following command:</p>
<pre>:~$ python -c 'import tensorflow as tf; print(tf.__version__)'</pre>
<p>If you want to update tensorflow, remember that the command is as follows:</p>
<pre>:~$ pip install --upgrade tensorflow</pre>
<p>After you have finished working, you can disable the virtual environment.</p>
<pre>:~$ deactivate</pre>
<p>And that is it. Tensorflow is installed and ready to the job.</p>
<h3>Some issues</h3>
<p>It is possible that some mistakes may occur. For example, displaying the version of Tensorflow might give the following error:</p>
<pre>Illegal instruction (core dumped)</pre>
<p>A solution could be to install Tensorflow version 1.5 with the following command:</p>
<pre>:~$ pip install tensorflow==1.5</pre>
<p>Another option is that the CPU or GPU does not have enough capacity to handle the package.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/">How to install Tensorflow on Ubuntu 18.04?</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-tensorflow-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
