Skip to content
Advertisement

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:

JavaScript

Both give similar errors.

I acknowledge I’m on a beta OS thus I wouldn’t complain if it’s not supported, just asking to make sure that it’s not some stupid user-errors.

Errors shown:

JavaScript

What I’ve tried

I’ve tried updating pip and setuptools but it didn’t make a difference. I’ve also removed the whole /Library/Python, still no luck.

Extra info

python3 -V:

JavaScript

pip -V:

JavaScript

which python3:

JavaScript

which pip:

JavaScript

Advertisement

Answer

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

JavaScript

Install brew version of python

JavaScript

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

JavaScript

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

JavaScript

Activate the virtual environment

JavaScript

Install packages to your environment

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement