Add --break-system-packages note
dblume

dblume commited on 2025-07-30 08:03:46
Showing 1 changed files, with 1 additions and 1 deletions.


Various ways to install packages like basedpyright:

    $ brew install basedpyright  # macOS
    $ python3 -m pip install basedpyright --break-system-packages  # Ubuntu 24.04
    $ python3 -m pip install --user basedpyright  # Older Ubuntu
    $ apt install python3-basedpyright  # For externally-managed-environments
... ...
@@ -465,7 +465,7 @@ lua << EOF
465 465
     vim.lsp.enable({'clangd'})
466 466
   end
467 467
 
468
-  -- python3 -m pip install basedpyright
468
+  -- python3 -m pip install basedpyright --break-system-packages
469 469
   if vim.fn.executable('basedpyright') == 1 then
470 470
     vim.lsp.config.basedpyright = {
471 471
       cmd = { 'basedpyright-langserver', '--stdio', },
472 472