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
この記事が気に入ったらサポートをしてみませんか?