Whenever I install package using pip on my computer, they are not available in my Jupyter Notebooks. From what I figured out, they are not in the same environment. When I run
import sys
sys.executable
on the Notebook, I get
/Library/Developer/CommandLineTools/usr/bin/python3
while on the terminal I get
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
What do I do to fix this? All answers I found online assume conda in installed, but I do not use conda. Ideally I would just change the default environment the Jupyter Notebook runs in but I can't figure out how...
EDIT
I tried adding the environment as suggested in another article by using the following code in terminal:
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -m ipykernel install --prefix=/Library/Developer/CommandLineTools/usr/bin/python3 --name 'Py3’
But it returns
quote>
Which I don't really understand.