18

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 reload my Python libraries without having to reload the window (Command Palette > Reload Window)?

Stevoisiak
  • 16,075
Incubbus
  • 315

1 Answers1

23

I have found that you can do ctrl + shift + p and select Python: Restart language server.

Toto
  • 19,304
Coder_fox
  • 378