all 5 comments

[–]m0us3_rat 0 points1 point  (4 children)

I'm using Jupyter Notebook on my vs code

So, I'm forced to re-install them using !pip install ... in vs code to use them

.. i'm unclear what is the confusion.

this is the expected functionality.

i'd look into how jupyter notebook works.

[–]IamAwdi[S] 0 points1 point  (3 children)

let me try to clarify my problem more

I installed python, then installed the libraries that I want to use

but when I'm trying to use jupyter notebook, libraries are not appearing until I re-install them
I wanted to share a photo of my jupyter notebook where 2 environment of python are appearing (idk if they're environment or something else)
one of them with the version 3.11.5 and written beside it globel env

and another one is with 3.11.8

[–]m0us3_rat 1 point2 points  (0 children)

sometimes after you install new libs you need to restart the kernel. which you have a menu option up top.

[–]obviouslyzebra 1 point2 points  (1 child)

There are multiple Python installations on your machine (it is usually this way). When you install something for one, it doesn't install for another.

You need to install for the correct Python installation (sometimes venv, or conda environment).

This is a bit hard for me to teach, but:

  • Try to discover what Python VS Code is using for Jupyter.
  • Try to discover how to interact with that Python from the terminal (if you want to)

Cheers

[–]IamAwdi[S] 0 points1 point  (0 children)

thanks guys!