Answers for "upgrade python in colab"

1

update python ubuntu

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.7
Posted by: Guest on May-18-2020
0

python upgrade pip scipy

sudo pip install --upgrade scipy
Posted by: Guest on August-07-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language