• 首页
  • >
  • Notes
  • >
  • Mac brew安装python,报错 No such file or directory
  • Mac brew安装python,报错 No such file or directory

    Time:2023-01-20 / View:1014

    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
    

     

    发布留言