I try to install Jupyter Lab on macOS, and found there are two ways. The first one via Homebrew
brew install jupyterlab
this way work fine, it brings a jupyter
command. But the drawback is it looks to have an independent Python environment, so it can’t naturally benefit from my system-level Python environment.
Therefore, I also tried to install Jupyter Lab from pip
via
pip3 install jupyterlab
However, looks install with this way can’t install executable jupyter
. I can only launch Jupyter Lab with dashed version jupyter-lab
. This is a worse problem, because no jupyter
command means some important subcommands like jupyter --paths
, jupyter kernelspec list
can’t be executed, and which also bring extra errors when try to run some scripts (e.g. I tried to install Wolfram Kernel for Jupyter via script ./configure-jupyter.wls add
mentioned in WolframResearch/WolframLanguageForJupyter but will meet Jupyter installation on Environment["PATH"] not found
problem).
I also searched related discussions about similar problems. But none of them is what I wish to ask. Following is the main categories about the similar discussions
- Some is about adding appropriate
bin
directory to$PATH
, but note here I even have nojupyter
executable! - And other is about conflict with Conda environment, but I also didn’t use Conda or similar self-contained environment tools.
- Furthermore, I also investigated the PyPI page of
jupyterlab
package (see JupyterLab), but there also didn’t have any discussion about nojupyter
executable problem–looks the doc assumepip install jupyterlab
will bringjupyter
executable. By from in my case, it only bring “dashed” version executable likejupyter-lab
, but nojupyter
executable at all.
So if there are any way to have jupyter
executable when install Jupyter Lab with pip
?