Failure to install old versions of transformers in colab
Question:
Answers:
Colab has recently upgraded to Python 3.9. There is a temporary mechanism for users to run Python 3.8 runtime (Linux-5.10.147+-x86_64-with-glibc2.29 platform). This is available from the Command Palette via the "Use fallback runtime version" command when connected to a runtime. The issue can be tracked here.
As Scka said, the problem occurred due to the update of Python by colab.
Python 3.7 can be installed every time on the notebook: with the following commands:
!sudo apt-get install python3.7
!sudo update-alternatives –install /usr/bin/python3 python3
/usr/bin/python3.7 1
!sudo update-alternatives –config python3
!sudo apt install python3-pip
after it
!python –version
then
!sudo apt-get install python3.7-distutils
Colab has recently upgraded to Python 3.9. There is a temporary mechanism for users to run Python 3.8 runtime (Linux-5.10.147+-x86_64-with-glibc2.29 platform). This is available from the Command Palette via the "Use fallback runtime version" command when connected to a runtime. The issue can be tracked here.
As Scka said, the problem occurred due to the update of Python by colab.
Python 3.7 can be installed every time on the notebook: with the following commands:
!sudo apt-get install python3.7
!sudo update-alternatives –install /usr/bin/python3 python3
/usr/bin/python3.7 1
!sudo update-alternatives –config python3
!sudo apt install python3-pip
after it
!python –version
then
!sudo apt-get install python3.7-distutils