Skip to content

Instantly share code, notes, and snippets.

@bluemyria
Last active May 16, 2023 15:16
Show Gist options
  • Save bluemyria/d1c3119c8854e90d0d4464f9a2a24efe to your computer and use it in GitHub Desktop.
Save bluemyria/d1c3119c8854e90d0d4464f9a2a24efe to your computer and use it in GitHub Desktop.
GCP Dev: 1. DevEnv - Python
# Navigation menu => Compute Engine => VM Instances => Create
# Identity and API access => Allow full access to all Cloud APIs.
# Firewall => Allow HTTP traffic
# SSH
sudo apt-get update
sudo apt-get install git
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
python --version
pip --version
git clone https://github.com/GoogleCloudPlatform/training-data-analyst
cd ~/training-data-analyst/courses/developingapps/python/devenv/
sudo python server.py
sudo pip install -r requirements.txt
python list-gce-instances.py <PROJECT_ID> --zone=<YOUR_VM_ZONE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment