0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PythonでWhisperのimportに失敗する場合の対処法

Posted at

はじめに

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

原因

PyPlに登録されている"whisper"というライブラリは、恐らくあなたが想定しているライブラリではない

pip install whisper

では、想定しているライブラリをインストールできていない。

対処法

pip uninstall whisper
pip install git+https://github.com/openai/whisper.git

を実行することで解決

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?