1、检查此 Python 的安装路径:
brew info python
2、您将看到类似于以下内容的路径:
/usr/local/opt/[email protected]/libexec/bin
3、将 home brew Python 设置为默认值:
echo 'export PATH="/usr/local/opt/[email protected]/libexec/bin:$PATH"' >> ~/.zshrc
1、检查此 Python 的安装路径:
brew info python
2、您将看到类似于以下内容的路径:
/usr/local/opt/[email protected]/libexec/bin
3、将 home brew Python 设置为默认值:
echo 'export PATH="/usr/local/opt/[email protected]/libexec/bin:$PATH"' >> ~/.zshrc