命令行执行cd

env: python: No such file or directory

920 发布: 2022/6/10 17:30 本文总阅读量

问题: 命令行执行cd命令后总是出现env: python: No such file or directory

原因: 因为MacOS Monterey 12.3系统更新了自带的python问题

解决:

ln -s /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3 /usr/local/bin/python3

ln -s -f /usr/local/bin/python3 /usr/local/bin/python