Answers for "colab change python version"

1

change python version in colab

Change Runtime Type and selecting python3
Posted by: Guest on June-29-2021
0

google colab upgrade python version

# install Anaconda3
!wget -qO ac.sh https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh 
!bash ./ac.sh -b

# a fake google.colab library
!ln -s /usr/local/lib/python3.7/dist-packages/google 
       /root/anaconda3/lib/python3.8/site-packages/google

# start jupyterlab, which now has Python3 = 3.8
!nohup /root/anaconda3/bin/jupyter-lab --ip=0.0.0.0&

# access through ngrok, click the link
!pip install pyngrok -q
from pyngrok import ngrok
print(ngrok.connect(8888))
Posted by: Guest on June-14-2021

Code answers related to "colab change python version"

Python Answers by Framework

Browse Popular Code Answers by Language