{"id":86066,"date":"2022-12-29T10:00:02","date_gmt":"2022-12-29T04:30:02","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=86066"},"modified":"2022-12-29T10:00:02","modified_gmt":"2022-12-29T04:30:02","slug":"tensorflow-installation-on-windows-and-ubuntu","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/","title":{"rendered":"Tensorflow Installation on Windows and Ubuntu"},"content":{"rendered":"<p>Nearly every process can be achieved using the Tensorflow platform. Its feature of being used on every device permits its users to create any kind of approach using TensorFlow. It is consistent with many languages such as JavaScript, Python, C#, Swift, and Ruby. This permits a user to operate in an atmosphere they are comfortable in.<\/p>\n<p>TensorFlow also executes calculations faster than GPU and CPU. It is used in numerous disciplines such as picture recognition, voice detection, motion detection.<\/p>\n<p>TensorFlow has one of the most comfortable installations, getting machine learning abilities squarely into the domain of everyday programmers. TensorFlow also delivers a reimagined approach and numerous user-friendly facilities to handle machine learning measures. Ultimately, TensorFlow has considerable and gathering support from Google.<\/p>\n<p>The present decade is quite compelling for programmers due to which the development of large shared datasets, affordable GPUs have helped machine learning measures in recent years. Training data has become widely known and readily consumable in current years.<\/p>\n<h3>Installing TensorFlow<\/h3>\n<p>TensorFlow is one of the top frameworks for deep learning and machine learning. It conveniently delivers several sorts of installation and works on numerous operating systems. The basic structure is CPU-only, with more refined installations.<\/p>\n<p>TensorFlow delivers numerous choices, which are as follows:<\/p>\n<p>1. Python pip3 installation<\/p>\n<p>2. Virtualenv<\/p>\n<p>Here are the measures with a brief summary of the installation procedure.<\/p>\n<h3>Install TensorFlow on Windows:<\/h3>\n<p>Firstly you have to make sure that you have downloaded Python. If you have python installed in your system you can skip to the next step.<\/p>\n<p>A 64-bit Python 3.5 version and above are the only versions that TensorFlow supports.<\/p>\n<p>1. We need to <a href=\"https:\/\/www.python.org\/downloads\/release\/python-362\">download and install Python.<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86382\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/install-python.webp\" alt=\"install python\" width=\"1600\" height=\"868\" \/><\/p>\n<p>2. Choose Add Python 3.x to Path.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86383\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/add-path.webp\" alt=\"add path\" width=\"634\" height=\"388\" \/><\/p>\n<p>3. Select Install Now.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86384\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/install-now.webp\" alt=\"install now\" width=\"631\" height=\"391\" \/><\/p>\n<p>4. Now a message appears as \u201cSetup was successful.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86385\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/setup-successful.webp\" alt=\"setup successful\" width=\"634\" height=\"385\" \/><\/p>\n<p>5. Open Command Prompt and type python to check the version in order to confirm that the installation is successful.<\/p>\n<p>As soon as you type in the command you can see the download starts and it will take a bit of time before the latest version of Tensorflow is installed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86386\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/command-prompt.webp\" alt=\"command prompt\" width=\"1600\" height=\"950\" \/><\/p>\n<p>6. Testing<\/p>\n<p>After successful installation from the above steps, it is necessary to check if the TensorFlow framework is working fine.<\/p>\n<p>The following demonstration shows the same.<\/p>\n<p>If it is working properly, you\u2019re good to go now.<br \/>\n&gt;&gt;&gt; <strong>python<\/strong><br \/>\n&gt;&gt;&gt;<strong>import tensorflow<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86387\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/testing.webp\" alt=\"testing\" width=\"1057\" height=\"286\" \/><\/p>\n<h3>Install TensorFlow on Ubuntu<\/h3>\n<p>Before installing TensorFlow on Ubuntu, some requirements are needed. It is necessary to have an Ubuntu 16.04 server<\/p>\n<ul>\n<li>1GB of RAM<\/li>\n<li>Firewall<\/li>\n<li>Python 3.3 or a further version is needed.<\/li>\n<\/ul>\n<p>Step 1: Install TensorFlow<\/p>\n<p>Make a project-directory dr-tensorflow<\/p>\n<p><strong>$ mkdir ~\/dr-tensorflow<\/strong><\/p>\n<p>Navigate to the newly created directory<\/p>\n<p><strong>$ cd ~\/dr-tensorflow<\/strong><\/p>\n<p>While the environment is being started, with the given commands a new tensorflow-dev directory that includes the packages will be installed.<br \/>\nThis command also includes a standalone version of Python and pip.<\/p>\n<p><strong>$source tensorflow-dev\/bin\/activate(tensorflow-dev)username@hostname:~\/dr-tensorflow $<\/strong><\/p>\n<p>Now, the next step is to install TensorFlow in your virtual setting.<br \/>\nTo install and upgrade TensorFlow&#8217;s most recent version in PyPi, execute the subsequent command.<\/p>\n<p><strong>(tensorflow-dev) $pip3 install &#8211;upgrade tensorflow<\/strong><\/p>\n<p>After successful installation, the output will be:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Collecting tensorflow \nDownloading tensorflow-1.5.0-cp37-cp37m-macosx_15_11_x86_64.whl (37.7MB) 100% |??????????????????????????????| 37.7MB 38kB\/s\nSuccessfully installed \n<\/pre>\n<p>With this, the TensorFlow installation is achieved. Make certain that TensorFlow is working.<\/p>\n<h3>Summary<\/h3>\n<p>TensorFlow is one of the most used deep learning frameworks. In this article, we have understood the installation of TensorFlow in both Windows and Ubuntu. Now we can proceed to build projects in deep learning, CNN, RNN, etc. Make sure to check whether the TensorFlow library is imported before using the framework.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nearly every process can be achieved using the Tensorflow platform. Its feature of being used on every device permits its users to create any kind of approach using TensorFlow. It is consistent with many&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":86114,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2618],"tags":[4785,4786,4787,4788,4789],"class_list":["post-86066","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tensorflow","tag-install-tensorflow","tag-install-tensorflow-on-ubuntu","tag-install-tensorflow-on-windows","tag-installing-tensorflow","tag-tensorflow-installation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tensorflow Installation on Windows and Ubuntu - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn how to install TensorFlow on Windows and Ubuntu in easy steps. See prerequisites for tensorflow installation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tensorflow Installation on Windows and Ubuntu - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn how to install TensorFlow on Windows and Ubuntu in easy steps. See prerequisites for tensorflow installation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-29T04:30:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/03\/install-tensorflow-windows-and-ubuntu.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tensorflow Installation on Windows and Ubuntu - TechVidvan","description":"Learn how to install TensorFlow on Windows and Ubuntu in easy steps. See prerequisites for tensorflow installation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Tensorflow Installation on Windows and Ubuntu - TechVidvan","og_description":"Learn how to install TensorFlow on Windows and Ubuntu in easy steps. See prerequisites for tensorflow installation.","og_url":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2022-12-29T04:30:02+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/03\/install-tensorflow-windows-and-ubuntu.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Tensorflow Installation on Windows and Ubuntu","datePublished":"2022-12-29T04:30:02+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/"},"wordCount":584,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/03\/install-tensorflow-windows-and-ubuntu.webp","keywords":["install tensorflow","install tensorflow on ubuntu","install tensorflow on windows","installing tensorflow","tensorflow installation"],"articleSection":["Tensorflow Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/","url":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/","name":"Tensorflow Installation on Windows and Ubuntu - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/03\/install-tensorflow-windows-and-ubuntu.webp","datePublished":"2022-12-29T04:30:02+00:00","description":"Learn how to install TensorFlow on Windows and Ubuntu in easy steps. See prerequisites for tensorflow installation.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/03\/install-tensorflow-windows-and-ubuntu.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/03\/install-tensorflow-windows-and-ubuntu.webp","width":1200,"height":628,"caption":"install tensorflow windows and ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/tensorflow-installation-on-windows-and-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Tensorflow Installation on Windows and Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/86066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=86066"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/86066\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/86114"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=86066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=86066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=86066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}