N
N
Nick Sl2022-02-04 14:32:56
Python
Nick Sl, 2022-02-04 14:32:56

How to find the speech_recognition module?

I can't start my voice assistant.
An error occurs
import speech_recognition as sr
ModuleNotFoundError: No module named 'speech_recognition'


At the same time, I updated PIP, installed both through pip3 and just through pip, it still says that speech_recognition is not installed, although it is worth it.
pip freeze gives:
cachetools==5.0.0
certifi==2021.10.8
charset-normalizer==2.0.11
google-api-core==2.5.0
google-api-python-client==2.36.0
google-auth= =2.6.0
google-auth-httplib2==0.1.0
googleapis-common-protos==1.54.0
httplib2==0.20.4
idna==3.3
protobuf==3.19.4
pyasn1==0.4.8
pyasn1-modules= =0.2.8
PyAudio @ file:///C:/Users/%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0...
pyparsing==3.0.7
pywin32==303
requests== 2.27.1
rsa==4.8
six==1.16.0
SpeechRecognition==3.8.1
uritemplate==4.1.1
urllib3==1.26.8
wheel-filename==1.4.0
winspeech==1.0.1 Tell me
what could be problem how to solve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sheerluck, 2022-02-10
@sheerluck

The problem may be that you have several Pythons installed on your computer, and speech_recognition is installed inside the site-packages of one Python, and you run pip freeze from another Python. Look for site-packages all over the drive, decide if you need all these Pythons or maybe delete everything and put one single Python in the root of drive C: for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question