Como usar Python 3.8 ou 3.9 no Google Colab


Use o código abaixo em um celula, execute e pronto!

[#@markdown <center><h2>Add support Python 3.8 Google Colab</h2></center><br>

!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh

!chmod +x mini.sh

!bash ./mini.sh -b -f -p /usr/local

!conda install -q -y jupyter

!conda install -q -y google-colab -c conda-forge

!python -m ipykernel install –name “py38” –user

!python3 -m pip install –upgrade pip

!python3 –version

Caso opte pelo Python 3.9, use:

[#@markdown <center><h2>Add support Python 3.8 Google Colab</h2></center><br>

!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py39_4.9.2-Linux-x86_64.sh

!chmod +x mini.sh

!bash ./mini.sh -b -f -p /usr/local

!conda install -q -y jupyter

!conda install -q -y google-colab -c conda-forge

!python -m ipykernel install –name “py39” –user

!python3 -m pip install –upgrade pip

!python3 –version




Source link