Unable to install Faster Whisper
Author: Denis-KazakovCreated Jul 11, 2025Updated Jun 10, 2026
OS: Linux Mint. Dedicated conda environment
After installing Cublas and cudnn with pip install nvidia-cublas-cu12 nvidia-cudnn-cu12==9.*, I ran:
export LD_LIBRARY_PATH=python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__))'
which gave me the following error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<frozen posixpath>", line 152, in dirname
TypeError: expected str, bytes or os.PathLike object, not NoneTypeGenerally, installation is very brittle. I was able to install Faster Whisper after installing transformers first (without explicitly installing cublas/cuddn), but I am unable to repeat the trick on the same computer a week later.
Source: SYSTRAN/faster-whisper