Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

How to Install Tensorflow on Ubuntu 18.04 – Google Cloud

by Cloudbooklet
4 years ago
in Google Cloud, Compute Engine
How To Install Tensorflow On Ubuntu 18.04 - Google Cloud
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

How to Install Tensorflow on Ubuntu 18.04 in Google Cloud. TensorFlow is open-source machine learning software developed by Google which is used to train neural networks. In this tutorial, we’ll install TensorFlow’s “CPU support only” version. This installation is ideal for people looking to install TensorFlow, but who don’t have Nvidia graphics card. Prerequisites A […]

ADVERTISEMENT

How to Install Tensorflow on Ubuntu 18.04 in Google Cloud. TensorFlow is open-source machine learning software developed by Google which is used to train neural networks.

In this tutorial, we’ll install TensorFlow’s “CPU support only” version. This installation is ideal for people looking to install TensorFlow, but who don’t have Nvidia graphics card.

Prerequisites

  • A Compute Engine Instance running with atleast 1 GB RAM, see the Setting up Compute Engine Instance.

Setting Up Python 3

Ubuntu 18.04 ships with both Python 3 and Python 2 pre-installed. To make sure all packages are up-to-date, start by updating the system.

ADVERTISEMENT

SSH to your Compute Engine instance and begin to execute the following commands.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago
sudo apt update
sudo apt -y upgrade

Once the update and upgrade is complete verify the Python installation using the following command.

python3 -V
Output
Python 3.6.7

Install the Required Packages

sudo apt install python3-pip python3-dev

Once Python is set up, and pip and other tools are installed, we can set up a virtual environment to install Tensorflow.

ADVERTISEMENT

Setting Up a Virtual Environment

We will be using the virtualenv module here, which is part of the standard Python 3 library.

sudo -H pip3 install virtualenv
mkdir ~/myproject
cd ~/myproject
virtualenv tf-env

Activate the virtual environment by typing.

ADVERTISEMENT
source tf-env/bin/activate

Your prompt should change to indicate that you are now operating within a Python virtual environment. It will look something like this: (tf-env) username@host:~/myproject$

Install Tensorflow

With your virtual environment activated you can install Tensorflow.

ADVERTISEMENT
pip install --upgrade tensorflow

Once the installation is completed you can verify the installation using the following command.

python -c 'import tensorflow as tf; print(tf.version)'
Output
1.13.1

Conclusion

Now you have learned how to install Tensorflow on Ubuntu 18.04 on Google Cloud Platform.

ADVERTISEMENT

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

Tags: Compute EngineGoogle Cloud PlatformUbuntu 18.04
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Comments 1

  1. Avatar Of Moueza MOUEZA says:
    4 years ago

    Hello,

    Good tutorial.

    Tell me : why do you use Virtual Environment. Does it success in non virtual environment ?(Because I try on VM Compute Engine : default environment = KO, in virtual OK)

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Cloud Vps Server

Top 10 Advantages of a Cloud VPS Server

September 19, 2023

10 Best AI Prompts for Writers to Improve Website SEO

Microsoft Unveils New Disc-Less Xbox Series X with Lift-to-Wake Controller

Wondershare Virbo AI Video Creation with New Features

Microsoft Editor vs Grammarly: Which is the Best Grammar Checker?

5 Best Laptop for Minecraft in 2023: Top Picks for All Budgets

Popular Articles

Ai Presentation Maker

Top 10 AI Presentation Maker: Easy Way to Create Stunning Presentations

September 15, 2023

6 Best AI Voice Cloning Tools that You Need to Try in 2023

How to Use the Donne App: A Step-by-Step Guide for Fashion Lovers

7 Best AI Finance Tools That Will Transform Your Business in 2023

7 Best Lyric Video Maker Software for Music Lovers

12 Best AI Interior Design Platforms for 2023 [Free and Paid]

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.