How do I install python 3 on google cloud console?

前端 未结 1 1302
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-14 21:18

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 \'pi

相关标签:
1条回答
  • 2021-01-14 22:11

    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
    
    0 讨论(0)
提交回复
热议问题