Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reload Python package after pip install in Visual Studio Code?

I wonder how to reload Python package after pip install in Visual Studio Code?

  1. pip install package-A
  2. pip list
  3. package-A does not exist
  4. Restart 'Visual Studio Code'

Is the only way to restart?

like image 928
Harry Avatar asked Dec 31 '25 23:12

Harry


2 Answers

The best answer I've found is to use Developer: Reload Window in the command palette like @rioV8 suggested. You can either use the command palette or you can change the key mappings as described here.

There's already a Ctrl + R key mapping for reloading the window, but it's got a 'when' condition attached to it so I changed that to true. I also had to delete key mappings for other extensions so there was no overlap.

like image 169
bbnt Avatar answered Jan 02 '26 13:01

bbnt


ctrl+shift+p and choose "Developer: Reload with extentions disabled"

like image 38
Pejman Mohebali Avatar answered Jan 02 '26 12:01

Pejman Mohebali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!