Code shell command doesn't work due to Python 2 being removed

Summary

In macOS 12.3 beta Apple removed support for Python 2. Additionally Python 3 no longer comes bundled with macOS. This causes the code command to not work anymore.

  • Error message:

    1
    command not found: code
  • Solution:

  1. Open the Command Palette via ⇧ + ⌘ + P and type shell command to find the Shell Command:

  2. Use the Uninstall ‘code’ command in the PATH command before the “Install ‘code’ command in PATH” command.

© 2022 Tiffany's Blog All Rights Reserved. 本站访客数人次 本站总访问量
Theme by hiero