I initialized a virtualenv with a python 2.7 interpreter, and then selected it as the interpreter in VSCode.
I then changed the virtualenv interpreter to python 3.7, and the VSCode interpreter list does not reflects the change: it still shows the virtualenv interpreter as being python 2.7.
How can I force the cached interpreter list to be updated or flushed?
This is related to this issue.
Running those 2 commands in the command palette worked for me.
Python: Clear Workspace Interpreter Setting
Python: Reset Stored Info for Untrusted Interpreters
As mentioned in the GitHub issue here Kudos to ericsnowcurrently
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With