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...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 48

  • @eckoecko4173
    @eckoecko4173 2 ปีที่แล้ว +2

    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.

  • @antwadubwa
    @antwadubwa 2 ปีที่แล้ว +3

    After spending 5 hours on not being to import packages, this video saved me! Thanks so much!

  • @erisah9334
    @erisah9334 2 ปีที่แล้ว

    Thank you so much! I have been researching everywhere to solve the problem. I am glad to find your video!

  • @TechMonetizeDojo
    @TechMonetizeDojo 3 ปีที่แล้ว +1

    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.

  • @darshpancholi4919
    @darshpancholi4919 2 ปีที่แล้ว

    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

  • @yepnah3514
    @yepnah3514 3 ปีที่แล้ว

    hey thanks a lot. your tutorial is so helpful!! I am surprised you have few comments.

  • @KVarunTejaRA
    @KVarunTejaRA 3 ปีที่แล้ว

    excellent short and clear video man
    keep it up tq

  • @owoled282
    @owoled282 3 ปีที่แล้ว

    worked like a charm. Thanks !

  • @kacper7333
    @kacper7333 3 ปีที่แล้ว +1

    Thanks for tutorial! It works pretty well.

  • @yu-tianzhang1105
    @yu-tianzhang1105 2 ปีที่แล้ว

    Good, this tutorial solved my problem of installing a desktop jupyter-lab and the python environment became mismatch.

  • @nadaal-shamayleh7446
    @nadaal-shamayleh7446 3 ปีที่แล้ว +1

    So grateful to you, Thanks A Lot!

  • @aniye1724
    @aniye1724 3 ปีที่แล้ว

    Thank you so much! worked for me :)

  • @shiblyaziz4528
    @shiblyaziz4528 3 ปีที่แล้ว +1

    Thanks a lot for the nice tutorial.

  • @chrisflores5514
    @chrisflores5514 2 ปีที่แล้ว

    This helped a lot. Thanks. :)

  • @r4z0rx-xgt
    @r4z0rx-xgt 11 หลายเดือนก่อน

    Incredibly helpful video

  • @auskk
    @auskk ปีที่แล้ว

    Helpful video! Thanks a lot!!!:D

  • @aliyauteuova2489
    @aliyauteuova2489 3 ปีที่แล้ว

    Thank you Soma this saved me!

  • @pannaroy6569
    @pannaroy6569 3 ปีที่แล้ว +4

    (which) command is not working in my jupyter

  • @lonedragon255
    @lonedragon255 8 หลายเดือนก่อน

    thank you man i messed up my venvs and nothing was working for me. Amazing Video!

  • @orange5941
    @orange5941 2 ปีที่แล้ว

    Thank you so much! save lots of time

  • @7838854281
    @7838854281 3 ปีที่แล้ว

    thank you so much Soma...

  • @svitirur1665
    @svitirur1665 3 ปีที่แล้ว

    i will like to install jupyter notebook in different directory how

  • @MetaMaths
    @MetaMaths 2 ปีที่แล้ว

    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 ?

  • @mazen-r
    @mazen-r 2 ปีที่แล้ว

    it worked, Thank you

  • @aswathik1595
    @aswathik1595 ปีที่แล้ว

    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

  • @tanushreemistry8149
    @tanushreemistry8149 ปีที่แล้ว

    !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.

  • @davidschaupp5423
    @davidschaupp5423 ปีที่แล้ว

    Hero! THX!

  • @fun_for_life_today
    @fun_for_life_today 3 ปีที่แล้ว

    Thnx man

  • @user-ri7uz9il1v
    @user-ri7uz9il1v 3 ปีที่แล้ว

    Thanks million times

  • @genacurry784
    @genacurry784 3 ปีที่แล้ว +4

    Anyone know how I would do this on a Windows machine? Which command is not recognized.

    • @scvblwxq
      @scvblwxq 3 ปีที่แล้ว

      This might be on a windows machine. Jupyter seems to have it's own Linux-like environment.

    • @keshav__k
      @keshav__k 3 ปีที่แล้ว +1

      !python -c "import os, sys; print(os.path.dirname(sys.executable))"
      try running this in jupyter notebook

  • @juanabozzetto757
    @juanabozzetto757 2 ปีที่แล้ว

    Thankkks!!

  • @ThatGuy-zw4le
    @ThatGuy-zw4le 2 ปีที่แล้ว

    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.

  • @henriquemazioli175
    @henriquemazioli175 3 ปีที่แล้ว

    God bless you man

  • @AdnanKhan-cx9it
    @AdnanKhan-cx9it 2 ปีที่แล้ว

    Thank you

  • @anupdholam1113
    @anupdholam1113 2 ปีที่แล้ว

    This is in Linux environment . Do we have something for windows

  • @nature_nurture_bliss
    @nature_nurture_bliss ปีที่แล้ว

    thankyou

  • @muscle_mass_mania
    @muscle_mass_mania ปีที่แล้ว

    thank you so much for take this video.
    My English skill is not good, but I can fix this problem.

  • @rianne465
    @rianne465 2 ปีที่แล้ว

    "!which" doesn't work: "'which' is not recognized as an internal or external command, operable program or batch file."

  • @ScriptureFirst
    @ScriptureFirst 3 ปีที่แล้ว

    !/usr…. System cannot find the other specified.

  • @ScriptureFirst
    @ScriptureFirst 3 ปีที่แล้ว +1

    !Which…. ‘Which’ is not a command 😕

  • @ameenpondy
    @ameenpondy 2 ปีที่แล้ว

    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 ?

    • @jsoma
      @jsoma  2 ปีที่แล้ว

      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!

    • @jsoma
      @jsoma  2 ปีที่แล้ว

      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!

  • @yasyguasgyasygu
    @yasyguasgyasygu 2 ปีที่แล้ว

    !which is not a command. i'm trying but failing!