Where are packages installed when using pip in Jupyter lab?

When using pip from within Jupyter lab, where are the packages installed? I have an internal ssd and an external hdd, and I strongly prefer having the packages installed on the external drive. Is there a way to do this?

first of all pip packages are downloaded into the python lib folder of your environment.

extensions then get installed into the jupyter data folder.

run jupyter --paths to see where jupyter stores what.

you can also change these paths.

this explains the available options.

2 Likes