Created
February 6, 2022 05:24
-
-
Save Miragecore/b69f20934ec20983e4d0ec956a56980d to your computer and use it in GitHub Desktop.
Colab Python version change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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