7

I am working in notebooks provided in the Workbench section of Vertex AI. I need an updated version of Python, but I only have access to Python 3.7 in these notebooks. I have successfully followed these steps 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 and restarting notebook's kernel, I run

from platform import python_version
print(python_version())

I get 3.7.12.

How do I get a notebook in Vertex AI supporting an up-to-date Python version?

zabop
  • 5,493
  • 3
  • 23
  • 56

1 Answers1

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

Refresh the page and the new python38 env will be avaiable: enter image description here enter image description here

ewertonvsilva
  • 1,534
  • 1
  • 4
  • 13