

[【Python】Word2Vecで単語の分散表現を体感する](https://zenn.dev/robes/articles/61847e68587b98)

を参考にし、word2vecをGoogle Colabratoryで動かそうと試みたのですが、

[code]

    !pip install gensim
    !pip install SudachiPy==0.5.4 ginza==4.0.6 ja-ginza==4.0.0 sklearn pandas
    
[/code]

の部分でエラーが起きてしまいます。  
下はこの部分の実行結果です。原因を調べて、pipやその他のアップグレード等試しましたが、何度やってもこうなってしまいます。  
何が原因なんでしょうか？

[code]

    Requirement already satisfied: gensim in /usr/local/lib/python3.10/dist-packages (4.3.2)
    Requirement already satisfied: numpy>=1.18.5 in /usr/local/lib/python3.10/dist-packages (from gensim) (1.23.5)
    Requirement already satisfied: scipy>=1.7.0 in /usr/local/lib/python3.10/dist-packages (from gensim) (1.11.3)
    Requirement already satisfied: smart-open>=1.8.1 in /usr/local/lib/python3.10/dist-packages (from gensim) (6.4.0)
    WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
    Collecting SudachiPy==0.5.4
      Using cached SudachiPy-0.5.4.tar.gz (86 kB)
      Preparing metadata (setup.py) ... done
    Collecting ginza==4.0.6
      Using cached ginza-4.0.6.tar.gz (20 kB)
      Preparing metadata (setup.py) ... done
    Collecting ja-ginza==4.0.0
      Using cached ja_ginza-4.0.0.tar.gz (51.5 MB)
      Preparing metadata (setup.py) ... done
    Collecting sklearn
      Using cached sklearn-0.0.post9.tar.gz (3.6 kB)
      error: subprocess-exited-with-error
      
      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> See above for output.
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
      Preparing metadata (setup.py) ... error
    error: metadata-generation-failed
    
    × Encountered error while generating package metadata.
    ╰─> See above for output.
    
    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.
    
[/code]


CC BY-SA 4.0
2023-10-09T03:55:59.230
96452
2023-10-09T04:04:36.553
2023-10-09T04:04:36.553
3060
60046
question
python google-colaboratory word2vec
word2vecに関するエラー