Sep-11-2020, 07:33 PM
I am writing a program for a virtual voice assistant ( macOS Mojave v.10.14.6). to do that, I installed the speechrecognition package using pip version 20.2.3. and it installed fine. when I type python in the terminal to open python interpreter, and then type import speechrecognition, it gives me this back:
>>> import speechrecognition Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named speechrecognitionthe terminal opens the interpreter in python 2.7.16, but i have python 3.8.5 downloaded. I thought that might be the problem, old python version can't import the updated pip version install of speechrecognition, but if this is the issue how can i fix it?