Skip to content

Instantly share code, notes, and snippets.

@sg-s
Created January 9, 2023 20:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sg-s/12b5dc8f977f53e6511a64dbcae38dec to your computer and use it in GitHub Desktop.
Save sg-s/12b5dc8f977f53e6511a64dbcae38dec to your computer and use it in GitHub Desktop.
Getting poetry working on Macs with Apple Silicon

Problem

poetry shits the bed when trying to install ipykernel on Macs with Apple Silicon

reason

Microsoft.

Yeah. They made something called debugpy that ipykernel depends on which fails for inscritable reasons.

Solution

Assuming you have poetry installed:

poetry init

poetry add debugpy=1.6  # this is important. later versions won't work
poetry add ipykernel

poetry run python -m ipykernel install --user --name $FOO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment