Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to flush interpreters list cache?

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.

like image 989
Josselin Avatar asked Jan 02 '23 17:01

Josselin


1 Answers

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

like image 122
Kop3sh Avatar answered Jan 12 '23 00:01

Kop3sh