【问题标题】:Python 3.8.5 already Installed but terminal uses 3.7.6 on typing python3Python 3.8.5 已安装,但终端在键入 python3 时使用 3.7.6
【发布时间】:2020-08-24 05:22:22
【问题描述】:

我会直奔主题。我将 python 版本 3.8.5 安装为最新的稳定 python 版本,但是当我在终端中使用命令 python3 时,它让我使用 python 3.7.6。

有没有办法解决这个问题?

screenshot of the problem

【问题讨论】:

  • 您应该将文本粘贴为文本,而不是图像。还要提供一些详细信息,例如您的操作系统版本(我猜是 macOS)、PATH 的设置、可能是which python 等。

标签: command-line terminal homebrew macos-catalina python-3.8


【解决方案1】:

确保您已将新版本的本地添加到您的 PATH 变量中,并确保命令引用正确的文件

python3 —version

看看这个:https://superuser.com/questions/433897/python-in-command-line-runs-the-wrong-version

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-09-27
    • 2021-05-05
    • 2021-01-16
    • 2022-12-03
    • 2021-09-10
    • 2021-04-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多