【问题标题】:I don't know how delete python2 in mac?我不知道如何在mac中删除python2?
【发布时间】:2020-08-02 01:23:38
【问题描述】:

我在 mac air 中使用了 Visual Studio,我安装了 python3.8.5,但 mac 已经有 python2 所以我不能在visual studio中使用python3.8 .. 我不知道如何在mac中删除python2? 请给我一些建议..

【问题讨论】:

标签: python-3.x python-2.7


【解决方案1】:

您可以更改使用中的默认shell选择一个新的,您可以在使用Visual Studio代码时选择执行中的默认shell:

您可以选择Select default shell 自定义您的shell 执行,之后您可以选择python3 的当前路径。

要发现您的默认 python3 安装在哪里,您可以运行以下命令:

which python3
#/usr/local/bin/python3

之后,您可以在 Visual Studio 实例中配置默认​​的 python3 路径。 只需选择终端并覆盖terminal.integrated.shell.osx: 环境变量。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-23
    • 2020-07-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-13
    • 1970-01-01
    • 2016-04-09
    相关资源
    最近更新 更多