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 ð
Comments
Post a Comment