Re-scan python libraries after pip install in Visual Studio Code
Every time i install a python library using pip (e.g. pip install requests
) i have to reload Visual Studio Code, so it starts scanning installed libraries (even when using the pip install
-command from within the VS-Code-activated shell).
If i don't do this i don't have "Intellisense" for that library and the imports just show a squiggle with unresolved imports.
Is there a way to "fix" this without having to reload the window (Command Palette > Reload Window
)?
Solution 1:
I have found that you can do ctrl + shift + p and select Python: Restart language server
.