JR16CS
JR16CS

Reputation: 33

Speech Recognition module not working, despite being downloaded

I was following along a tutorial where they used the SpeechRecognition module, but when I made it to the first test it returns C:\Users\USER\PycharmProjects\Fatawi\venv\Scripts\python.exe C:/Users/USER/PycharmProjects/Fatawi/main.py Traceback (most recent call last): File "C:\Users\USER\PycharmProjects\Fatawi\main.py", line 1, in <module> import speech_recognition as sr ModuleNotFoundError: No module named 'speech_recognition'

I've tried reinstalling the library multiple times along with the PyAudio library. I ran the test that PyPi has for it and it works, but I don't know how fix it from here.

Upvotes: 1

Views: 485

Answers (2)

JR16CS
JR16CS

Reputation: 33

So aftergoing through some of the settings of the project file and checking the Python Interpreter it didn't have the SpeechRecognition Package. So I'm assuming that something went wrong with the install.

Thank you Faisal Faraj for the help.

Upvotes: 1

Faisal Faraj
Faisal Faraj

Reputation: 617

  1. Check your python interpreter environment (the python version that's run the python file) maybe it's not the same version as python when you downloaded Speech Recognition.
  2. Check if you activating the environemt.

For better understand see this blog in geeks for geeks might help you.

Upvotes: 2

Related Questions