如何在 Vertex AI 笔记本电脑上更新 Python?

How to update Python on Vertex AI notebooks?

我正在使用 Vertex AI Workbench 部分提供的笔记本。我需要 Python 的更新版本,但我只能访问这些笔记本中的 Python 3.7。我已经成功地跟随 and if I run python3.8 --version, I get Python 3.8.2, which is good, but python --version still returns Python 3.7.12. If, following this answer 并重新启动了笔记本的内核,我 运行

from platform import python_version
print(python_version())

我得到 3.7.12

如何在 Vertex AI 中获取支持最新 Python 版本的笔记本?

#create a new conda env:
$ conda create -n python38 python=3.8

#Activate your new Python 3.8 environment:
$ conda activate python38

#install ipykernel when logged in the new env:
(python38)$ conda install ipykernel

刷新页面,新的 python38 环境将可用: