Skip to content Skip to sidebar Skip to footer

Error Installing Jupyterlab/jupyter Notebook On Macos Big Sur

I'm trying to install jupyter on my mac, but I'm facing errors while installing. The commands used to install: pip install jupyterlab pip install notebook Both give similar errors

Solution 1:

Not sure what's going on with the built in version of python in OS X (I've heard something about compatibility switching causing unpredictable behaviour as it switches between 2 modes automatically).

Anyway, it seems installing the homebrew version of python largely skips around the issues so I suggest you go that route.

Install brew if not installed

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install brew version of python

brew install python 

Add an alias to your shell (the below command is for zshell) to make python point to your new python install

echo"alias python=/usr/local/bin/python3" >> ~/.zshrc

Setup a virtual environment to sequester off where you install packages to

python -m venv ~/.env

Activate the virtual environment

source ~/.env/bin/activate

Install packages to your environment

pip install notebook jupyter

Solution 2:

I had the same error and try many things, the fastest and most effective way for me was:

  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select--install

and then just use pip3 for everything

Solution 3:

I tried each of the above answers, and I still couldn't run jupyter notebook. In case anyone else runs into this issue, after trying the above answers, I installed jupyter notebook via brew:

brew install jupyterlab

Then I was able to run jupyter notebook:

jupyter notebook

Post a Comment for "Error Installing Jupyterlab/jupyter Notebook On Macos Big Sur"