/usr/local/bin/code: line 6: python: command not found
653 ワード
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.
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.Reference
この問題について(/usr/local/bin/code: line 6: python: command not found), 我々は、より多くの情報をここで見つけました https://velog.io/@lucky7777777/usrlocalbincode-line-6-python-command-not-foundテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol