Rasa Voice Assistant with Mozilla Tools: ModuleNotFoundError: No module named 'torch'

I am following the tutorial from the blog post to convert my chatbot into a voice assistant. However, when I run the command rasa run --enable-api -p 5005 I get the following error:

. If I just run python socketio_connector.py the program works and I don’t get the no module named torch error. What could be causing this?

hmm it could be that the rasa binary is installed somewhere other than you think. what does which rasa return? it should be in the same dir as your installation (/usr/local/lib/python3.7/site-packages), looks like a global install. Did you maybe work in a virtualenv when you ran python socketio_connector.py ?