Hello, @prateekjjw001 @sandipkhairnar @admin
As suggested, I tried using another IDE (Spyder3) and was still getting the same error. So, clearly it wasn't to do with the IDE. I just dug deeper into this and was able to SUCCESSFULLY fix this issue by installing two additional pip requirements. Hence, anyone getting 'No Module found: twisted' error should first install twisted using the below command:
pip3 install twisted
Then, if you get the 'No module found: OpenSSL' or 'No module found: autobahn'. Try the below codes. I don't know if the first one is necessary but I used it to fix my issue so probably it may help others too:
pip install pyOpenSSL
The other two which helped me get out of this headache I had since days were:
pip3 install service_identity
pip3 installed autobahn twisted
Thank you all for your help so far :)