简体   繁体   English

在 Google Cloud Shell 上更新 Python 版本

[英]Updating Python Version on Google Cloud Shell

My Google Cloud Shell currently has python 2.0 which has been deprecated.我的 Google Cloud Shell 目前有已弃用的 python 2.0。

Does anyone have any code that would allow me to install python 3.7 in my Google Cloud Shell?有没有人有任何代码可以让我在我的 Google Cloud Shell 中安装 python 3.7?

Thank you!谢谢!

Cloud Shell includes Python 3.7.3 as python3: Cloud Shell 包含 Python 3.7.3 作为 python3:

$ which python3
/usr/bin/python3
$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM