How Do I Install Python 3 On Google Cloud Console?
I'm just getting started in the Google Cloud Console. I've created a VM (Red Hat Enterprise Linux 7). Python 2.7 comes preinstalled. How do I update to Python 3? Also 'pip install'
Solution 1:
RHEL 7 running on GCE VM is mostly identical to RHEL 7 running on your own physical server.
One thing to be aware is that by default on GCE Vms, passwordless sudo is enabled with the default account you ssh into the VM.
Once you ssh into the VM (either from the browser or using gcloud compute ssh
), you can follow these steps:
# Install Python 3.4
sudo yum -y install python34
# Install python-setuptools which will bring in easy_install
sudo yum -y install python34-setuptools
# Install pip using easy_install
sudo easy_install-3.4 pip
Post a Comment for "How Do I Install Python 3 On Google Cloud Console?"