/usr/local/bin/code: line 6: python: command not found
After updating my mac to version 12.3.1 this error showed up in terminal when I type 'code' command.
To solve this problem, first modify /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code file like this.
- function realpath() { python -c ...
+ function realpath() { python3 -c ...
Then, go to the /usr/local/bin and remove the existing code file. Next, make a new symbolic link file with the file above.
ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" /usr/local/bin/code
"code" command should work fine again.
Author And Source
이 문제에 관하여(/usr/local/bin/code: line 6: python: command not found), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@lucky7777777/usrlocalbincode-line-6-python-command-not-found저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)