【问题标题】:Updating Python Version on Google Cloud Shell在 Google Cloud Shell 上更新 Python 版本
【发布时间】:2020-09-17 04:11:04
【问题描述】:

我的 Google Cloud Shell 目前有已弃用的 python 2.0。

是否有任何代码可以让我在我的 Google Cloud Shell 中安装 python 3.7?

谢谢!

【问题讨论】:

标签: python-3.x google-cloud-shell


【解决方案1】:

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

【讨论】:

  • 有没有办法将其更新到 Python 3.8、3.9?
  • 很高兴您包含了命令的退出部分。我犯了很多次完全相同的错误。
猜你喜欢
  • 2021-08-24
  • 1970-01-01
  • 2018-01-04
  • 2021-01-05
  • 2021-10-14
  • 2023-04-07
  • 2021-02-07
  • 1970-01-01
  • 2016-05-20
相关资源
最近更新 更多