Build an Ubuntu python development environment on Google Cloud Platform

Introduction

Google Cloud Platform

Create New

First, access the following site. Google Cloud Platform

Click Go to Console (https://console.cloud.google.com/iam-admin/projects?hl=ja)

gcp.PNG

Click Create Project

gcp2.PNG

Enter the project name and click the create button

gcp3.PNG

Click Compute Engine from the menu on the left

gcp7.PNG

Wait for Compute Engine to initialize

Create a virtual machine instance

  1. Click the [Create Instance] button

gcp8.PNG

  1. Select a boot disk image Click Change in the boot disk section to start setting up the boot disk.

On the OS Image tab, select Ubuntu 16.04 LTS and click Select.

  1. Allow HTTP traffic Select Allow HTTP traffic in the firewall section.

  2. Click the [Create] button Click the Create button to create an instance.

gcp9.PNG

Once your instance is created, your billing account will begin to be billed according to GCE pricing.
Delete the instance later to avoid extra charges.

Connect to your instance

If a VM instance has been created, click the SSH button on the right and click Open in Browser Window

gcp11.PNG

Click SSH to Connect to VM Instance

gcp12.PNG

ubuntu console starts

gcp13.PNG

Try running python

First, I will download my source code. Enter the following command $ git clone https://github.com/sasaco/tf-dqn-reversi.git

ubuntu1.PNG

Enter the following command $ cd tf-dqn-reversi

Enter the following command $ python train.py

How about In my source code, I got an error like Japanese cannot be used It looks like you can't use Japanese in python code or comment lines

Recommended Posts

Build an Ubuntu python development environment on Google Cloud Platform
Prepare Python development environment on Ubuntu
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build Python3 and OpenCV environment on Ubuntu 18.04
Build a Python + OpenCV environment on Cloud9
build Python on Ubuntu
Build python environment with pyenv on EC2 (ubuntu)
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Build a Python development environment on your Mac
Build a Kubernetes environment for development on Ubuntu
Build a Python development environment on Raspberry Pi
Build python3 environment with ubuntu 16.04
Build Python environment on Windows
[ev3dev × Python] Build ev3dev development environment
Build python environment on windows
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Build a GVim-based Python development environment on Windows 10 (1) Installation
From python to running instance on google cloud platform
Build a Python development environment on Mac OS X
Build a Python development environment using pyenv on MacOS
Build an environment for machine learning using Python on MacOSX
Building a Python environment on Ubuntu
Python development environment construction on macOS
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Install Python development environment on Windows 10
Build a python3 environment on CentOS7
Until building a Python development environment using pyenv on Ubuntu 20.04
OpenCV3 & Python3 environment construction on Ubuntu
# 3 Build a Python (Django) environment on AWS EC2 instance (ubuntu18.04) part2
Create an AWS Cloud9 development environment on your Amazon EC2 instance
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
When creating an environment that uses python django on Ubuntu 12.04 LTS
Build Python environment on Ubuntu (when pip is not the default)
Build an environment for Blender built-in Python
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Build a python environment on MacOS (Catallina)
Python virtual environment and packages on Ubuntu
Steps to install Python environment on Ubuntu
Build an LNPP environment on Amazon Linux 2
Created Ubuntu, Python, OpenCV environment on Docker
Build Python environment with Anaconda on Mac
Create an OpenCV3 + python3 environment on OSX
Build Python development environment (pythonz, virtualenv, direnv)
Build a "Deep learning from scratch" learning environment on Cloud9 (jupyter miniconda python3)
Install python package in personal environment on Ubuntu
Build Python development environment with Visual Studio Code
Build a python environment with ansible on centos6
Build a Python environment on Mac (Mountain Lion)
Python development on Ubuntu on AWS EC2 (using JupyterLab)
[Python] Build a Django development environment with Docker
Try running Distributed TensorFlow on Google Cloud Platform
[Venv] Create a python virtual environment on Ubuntu
Build Python3 + flask environment on GCP Compute Engine
Set up a Python development environment on Marvericks
Set up an Objective-C 2.0 development environment on Linux
How to build Java environment on Ubuntu (Linux)
Create a Python virtual development environment on Windows
Build an Arch Linux environment on Raspberry Pi
Prepare the development environment for Python on AWS Cloud9 (pip install & time change)
How to build an environment for using multiple versions of Python on Mac