SpencerPark / IJava

A Jupyter kernel for executing Java code.
MIT License
1.1k stars 217 forks source link

When I run `python3 install.py --sys-prefix`, I encounter ModuleNotFoundError: No module named ‘jupyter_client’? #157

Open meiyingqishi opened 7 months ago

meiyingqishi commented 7 months ago

Hi there,

My Python is installed using Homebrew, so I have to use Homebrew to install Jupyterlab. When I try to install IJava and execute python3 install.py --sys-prefix, I encounter the following error:

Traceback (most recent call last):
  File "/Users/myqs/Downloads/ijava/install.py", line 6, in <module>
    from jupyter_client.kernelspec import KernelSpecManager
ModuleNotFoundError: No module named ‘jupyter_client'

Even though I've installed jupyter_client using Homebrew, I still encounter the same error.

andrus commented 5 months ago

You may have different Python installations. To find the one that is "Jupyter-aware", I am using this trick:

cat `which jupyter` |head -1 |cut -d'!' -f2

The full instructions for installing with Homebrew are available in the DFLib docs at https://dflib.org/docs/1.x/#jupyter (they reference the new JJava kernel, but they work for the old iJava as well).