【问题标题】:Use Latest Version of Python 3 When Launching IDLE启动 IDLE 时使用最新版本的 Python 3
【发布时间】:2018-12-09 16:45:39
【问题描述】:

我使用自制软件在我的 Mac 上安装了新版本的 Python3。我安装的版本是 Python 3.7。

当我从终端启动“idle3”时,shell 仍然在窗口顶部显示“Python 3.6.0 Shell”。

有没有办法配置空闲来“使用”我使用 Homebrew 安装的最新版本的 Python 3?

【问题讨论】:

    标签: homebrew python-3.6 python-idle


    【解决方案1】:

    自制软件提供的idle3版本位于/usr/local/bin。此位置应首先出现在您的 PATH 中。

    编辑您的~/.bash_profile 文件并在末尾添加:

    export PATH="/usr/local/bin:$PATH"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-05
      • 1970-01-01
      • 2019-04-17
      • 2019-05-10
      • 1970-01-01
      • 2011-06-14
      • 2016-08-13
      • 1970-01-01
      相关资源
      最近更新 更多