![見出し画像](https://assets.st-note.com/production/uploads/images/139715671/rectangle_large_type_2_67e12b6ee290d0272712142ec64a9e62.png?width=1200)
PythonでWhisperのimportに失敗する
はじめに
PythonでWhisperを用いた文字起こしプログラムを実行時にエラーに遭遇したので備忘録
File "C:\Users\kmch4n\AppData\Local\Programs\Python\Python312\Lib\ctypes\__init__.py", line 369, in __init__
if '/' in name or '\\' in name:
^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
原因
pip3 install whisper
PyPlに登録されている"whisper"というライブラリは高い確率であなたが想定しているライブラリではない
対処法
pip3 uninstall whisper
pip3 install git+https://github.com/openai/whisper.git
参考 -> github
この記事が気に入ったらサポートをしてみませんか?