Jupyter Notebook ModuleError after Homebrew Upgrade

前端 未结 1 1294
渐次进展
渐次进展 2021-01-22 09:58

I have been using Jupyter for some time now and it has worked just fine. I have Jupyter and Python installed via Homebrew. I am running on MacOS.

Yesterday, I ran the co

相关标签:
1条回答
  • 2021-01-22 10:47

    I figured out what to do — posting the solution for my future self and others who may stumble upon this.

    Since Jupyerlab is in its own Cellar, the Python packages need to end up in the

    /usr/local/Cellar/jupyterlab/x.y.z/libexec/lib/python3.x/site-packages

    directory, where x, y, z are integers, so that the Jupyter kernel can find them.

    You can do this by calling:

    import sys
    !{sys.executable} -m pip install 'package-name'
    

    inside of the Jupyer notebook.

    All is well, again.

    0 讨论(0)
提交回复
热议问题