Reputation: 331
I had this error while I was working on my assignment using python 3.7
in Visual Studio Code
. I tried to comment in some previous stackoverflow posts but it doesn't allow me to comment. So I'm sharing the solution I found in this post.
Upvotes: 1
Views: 1697
Reputation: 303
In my case it was a bit different. My vscode's interpreter was pointing to another version of python. To change the python3 interpreter, open command palette(ctrl+shift+p) and search for, Python : Select Interpreter. Now change that to the correct path and it is good to go.
Upvotes: 0
Reputation: 331
After searching for a solution I came up with the following, using also steps from this link.
Other solutions weren't helpful for me but this worked so I hope it'll be useful for you as well. :)
Upvotes: 2