Pip install Different Environment between jupyter notebook and terminal

Hi,

When I try to use python package ‘socketscpi’ in jupyter notebook. It has error

But I checked the package in the terminal. It has that package.
image

I don’t know why. So re-install it in Jupiter notebook.

I found they have different environmental paths. So maybe that is the reason.

My question is I don’t want to re-install all packages in jupyter notebook. How to make it link to the terminal default environment path? Thank you!

1 Like

Hi,

The Jupyter you access from the browser is running as root, and in the terminal you are running as regular user. So, you can’t link those environments. I suggest you run as root in the terminal as well.

BTW, it would be useful if you report the SD card version. I suppose you are using 2.6

Mario

1 Like

Hi, Marioruiz,

Correct, I was using 2.6 version.

BR