ModuleNotFoundError: No module named ‘onnxruntime’

File "/home/user/twitch/", line 11, in <module>
result = whisper.transcribe(model, audio, vad=True, language="de", beam_size=5, best_of=5, temperature=(0.0, 0.2, 0.4, 0.6, 0.8, 1.0))
File "/home/user/miniconda3/lib/python3.11/site-packages/whisper_timestamped/", line 255, in transcribe_timestamped
audio, convert_timestamps = remove_non_speech(audio, plot=plot_word_alignment)
File "/home/user/miniconda3/lib/python3.11/site-packages/whisper_timestamped/", line 1790, in remove_non_speech
segments = get_vad_segments(
File "/home/user/miniconda3/lib/python3.11/site-packages/whisper_timestamped/", line 1733, in get_vad_segments
import onnxruntime
ModuleNotFoundError: No module named 'onnxruntime'

Asked on September 7, 2023 in uncategorized.
Add Comment
1 Answer(s)
It sounds like you're trying to run an application in Python and experiencing the `ModuleNotFoundError: No module named 'onnxruntime'` error. `onnxruntime` is a Python package. The error occurs because Python cannot find this package in its environment. Here's how you can fix it: 1. **Install the onnxruntime package**: You can install it using pip, Python's standard package installer. Open your terminal, and type the following command: ``` pip install onnxruntime ``` Optionally, if you're working within a conda environment, you might want to use conda to install packages. Here's how: ``` conda install -c conda-forge onnxruntime ``` 2. **Verify the installation**: After installation, you can verify it by trying to import the module in Python interpreter. Run: ```python import onnxruntime ``` If you see no error message, the installation was successful. Keep in mind: - Always ensure you're using the right Python environment, especially when working within virtual environments, conda environments, etc. Your package needs to be installed in the environment you're actually running. - Some packages may require specific versions of Python. If you continue to experience problems after installing `onnxruntime`, verify that your Python version is compatible with the package version you've installed. Please let me know if this helps or if you need assistance with something else.
Answered on September 7, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.