【问题标题】:Changing Google Cloud Python Version to Python 3将 Google Cloud Python 版本更改为 Python 3
【发布时间】:2020-08-02 12:21:24
【问题描述】:

我使用下面的命令升级到python3.7

但是当我控制python版本时,仍然是python 2.7。 我应该怎么做?

【问题讨论】:

  • 你试过harmanw提供的答案
  • 当我检查版本时,它仍然是 2.7
  • 我应该输入 python3.7 而不是 python :)

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


【解决方案1】:

查看this answer中提供的说明:

那么你可以像这样调用 Python:

python3.7 ./yourScript.py

不要忘记使用python3.7 而不是python

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多