Update Python Version in Google Colab

Why we need to update?

Many major library require minimum python version at least 3.8 but Colab still on python 3.7. 💢

Solution:

Thanks to the condacolab team who make it possible. 💖

Step1:
!pip install -q https://github.com/conda-incubator/condacolab/archive/main.tar.gz

Step2:
import condacolab
condacolab.install_from_url("https://github.com/conda-forge/miniforge/ \
releases/download/4.14.0-0/Mambaforge-4.14.0-0-Linux-x86_64.sh")

Step3:
import sys
sys.version

You will see 3.10.6 | packaged by conda-forge ... 😍

Step4:
!pip install metpy

Step5:
import metpy
metpy.__version__

You will see 1.3.1 🚀

Example notebook:





Comments

Popular posts from this blog

เริ่มต้นใช้งาน Google Colab

การติดตั้ง Docker บน Linux Ubuntu 18.04