Open2
colab tips
ColabでPython 3.10のインストール
!sudo add-apt-repository -y ppa:deadsnakes/ppa
!sudo apt-get -y update
!sudo apt-get -y install python3.10
!sudo apt-get -y install python3.10-dev
!sudo apt-get -y install python3.10-distutils
!curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
!sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
!sudo update-alternatives --set python /usr/bin/python3.10
!update-alternatives --list python
!sudo ln -sf /usr/bin/python /usr/local/bin/python
!python --version
ColabでPython 3.9のインストール
!sudo add-apt-repository -y ppa:deadsnakes/ppa
!sudo apt-get -y update
!sudo apt-get -y install python3.9
!sudo apt-get -y install python3.9-dev
!sudo apt-get -y install python3.9-distutils
!curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
!sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2
!sudo update-alternatives --set python /usr/bin/python3.9
!update-alternatives --list python
!sudo ln -sf /usr/bin/python /usr/local/bin/python
!python --version