美文网首页
Mac brew VSCode Python3

Mac brew VSCode Python3

作者: hiworld | 来源:发表于2022-01-02 13:13 被阅读0次
  1. 安装 brew
    /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
    参考:https://zhuanlan.zhihu.com/p/111014448

  2. 安装Python3
    brew install python3
    安装成功后 使用以下命令查看安装目录
    which python3
    /usr/local/bin/python3

  3. 安装vscode
    下载mac版本 vs code 移动到应用程序目录下即可打开
    https://code.visualstudio.com/

  4. vscode中安装 python3的扩展插件
    在扩展中搜索python3 ,安装成功后,配置python3的解释器路径: /usr/local/bin/python3
    点击扩展插件右下角的设置(小齿轮)--> 扩展设置 --> 在settings.json中编辑
    找到"python.defaultInterpreterPath": "/usr/local/bin/python3"

相关文章

网友评论

      本文标题:Mac brew VSCode Python3

      本文链接:https://www.haomeiwen.com/subject/ylszqrtx.html