Fix Anaconda + Jupyter Notebook "module not found" errors (make Jupyter work with multiple Pythons!)
ฝัง
- เผยแพร่เมื่อ 12 ก.ย. 2020
- Did you install Anaconda but Jupyter Notebook can’t find Anaconda? Or you run Jupyter but nothing seems to be installed? It’s a kernel problem! Let’s walk through how to solve “module not found” errors when Jupyter can’t find the Python you want to use.
Commands:
conda activate base
python -m ipykernel install --user --name anaconda-base --display-name "Anaconda (base)"
Alternatively, if you want to install another kernel from pyenv (or any other kind of python) you'll run two commands, one to install the connect-to-Jupyter-through-a-kernel package and one to actually install the Python kernel:
~/.pyenv/versions/3.8.2/bin/python -m pip install ipykernel
~/.pyenv/versions/3.8.2/bin/python -m ipykernel install --user --name pyenv-382 --display-name “3.8.2 (pyenv)”
Not sure where all of your pythons are? Use "which -a python" to list all pythons in your PATH. Not all of these commands work on Windows, but the ipykernel ones will.
References:
ipython.readthedocs.io/en/sta... - วิทยาศาสตร์และเทคโนโลยี
Thank you for not just solving the issue but by explaining the paths! it really helped me to wrap my head around Jupyter environments and where they are pulling from.
After spending 5 hours on not being to import packages, this video saved me! Thanks so much!
Thank you so much! I have been researching everywhere to solve the problem. I am glad to find your video!
I am grateful for this video. After doing everything right and not able to initiate the work was so much frustrating. Very easy to go through this video though I work on windows. Thank you so much sir Jonathan.
thank you so much for putting out this video. had gone through almost all the solutions on stackoverflow but wasn't able to find a solution
hey thanks a lot. your tutorial is so helpful!! I am surprised you have few comments.
excellent short and clear video man
keep it up tq
worked like a charm. Thanks !
Thanks for tutorial! It works pretty well.
Good, this tutorial solved my problem of installing a desktop jupyter-lab and the python environment became mismatch.
So grateful to you, Thanks A Lot!
Thank you so much! worked for me :)
Thanks a lot for the nice tutorial.
This helped a lot. Thanks. :)
Incredibly helpful video
Helpful video! Thanks a lot!!!:D
Thank you Soma this saved me!
(which) command is not working in my jupyter
!which jupyter
thank you man i messed up my venvs and nothing was working for me. Amazing Video!
Thank you so much! save lots of time
thank you so much Soma...
i will like to install jupyter notebook in different directory how
I am trying to use a python library (not Conda) . I install it with pip but the Jupiter notebook says 'no module found'. What can I do in this case ?
it worked, Thank you
how do install finesse. i tried this method. changed kernel. imported conda. still not able to install. The command i gave is conda install -c conda-forge finesse which was in the website. mine is windows 10
!which -a python if i write in jupyter notebook it shows "which" is not recognized as internal or external command,operable program or batch file.
Hero! THX!
Thnx man
Thanks million times
Anyone know how I would do this on a Windows machine? Which command is not recognized.
This might be on a windows machine. Jupyter seems to have it's own Linux-like environment.
!python -c "import os, sys; print(os.path.dirname(sys.executable))"
try running this in jupyter notebook
Thankkks!!
i did all that, got the kernel option to show like in 11:05. I picked the base and i still can't import conda. I'm dead inside.
God bless you man
Thank you
This is in Linux environment . Do we have something for windows
thankyou
thank you so much for take this video.
My English skill is not good, but I can fix this problem.
"!which" doesn't work: "'which' is not recognized as an internal or external command, operable program or batch file."
!/usr…. System cannot find the other specified.
!Which…. ‘Which’ is not a command 😕
Hello,
After a long struggle, your video game me some hope but i got another problem saying "No module named ipykernel" when i have given this command
Mine is windows 10 OS.
(base) PS C:\Users\Hak> python -m ipykernel install --user --name anaconda-base --display-name "Anoconda (base)"
C:\Users\Hak\miniconda3\python.exe: No module named ipykernel
Can someone help me please ?
You'll need to make sure that python has installed ipykernel, but sometimes just "pip install ipykernel" doesn't work! The best way to do this for you will be "python -m pip install ipykernel". Then you should be good!
You'll need to make sure that python has installed ipykernel, but sometimes just "pip install ipykernel" doesn't work! The best way to do this for you will be "python -m pip install ipykernel". Then you should be good!
!which is not a command. i'm trying but failing!