Python ModuleNotFoundError despite the modules being installed
问题 While importing: import speech_recognition as sr import pyttsx3 I get the error: ModuleNotFoundError: No module named 'speech_recognition' ModuleNotFoundError: No module named 'pyttsx3' 回答1: Pls.run pip list in the same virtual env and check if your modules are present in the list. Also, pls.run in the python terminal the same import first. 回答2: I assume you are using Python 3 and your pip is installed and functional (you might need to use sudo or run command as admin, depending on your OS):