end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

google colab に付属する python バージョンを変更

BertSum(T5)を用いてアンケートの自由記述を要約するレシピ

上記の写経の際、python 3.10では、「pip install neuralcoref」できないようでしたので、 以下の手順で、python 3.10→3.8に変更

python バージョンを変更

!sudo update-alternatives --config python3

There are 2 choices for the alternative python3 (providing /usr/bin/python3).

  Selection    Path                 Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3.10   2         auto mode
  1            /usr/bin/python3.10   2         manual mode
  2            /usr/bin/python3.8    1         manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/python3.8
to provide /usr/bin/python3 (python3) in manual mode

!python --version
Python 3.8.10

pipのインストール

!sudo apt install python3-pip
!wget https://bootstrap.pypa.io/pip/3.6/get-pip.py
!python3 get-pip.py