Skip to content

Instantly share code, notes, and snippets.

@Miragecore
Created February 6, 2022 05:24
Show Gist options
  • Save Miragecore/b69f20934ec20983e4d0ec956a56980d to your computer and use it in GitHub Desktop.
Save Miragecore/b69f20934ec20983e4d0ec956a56980d to your computer and use it in GitHub Desktop.
Colab Python version change
if True:
ver = !python -V
print(ver[0])
if ver[0] != 'Python 3.8.9':
!wget https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tgz
!tar xvfz Python-3.8.9.tgz
%cd Python-3.8.9
!./configure
!make
!sudo make install
!python -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment