微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在Google Cloud Shell上更新Python版本

如何解决在Google Cloud Shell上更新Python版本

我的Google Cloud Shell当前具有不推荐使用的python 2.0。

任何人都有任何允许我在Google Cloud Shell中安装python 3.7的代码吗?

谢谢!

解决方法

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
>>>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。