【问题标题】:Python 3 on atom on MacMac 上 atom 上的 Python 3
【发布时间】:2016-12-13 17:31:06
【问题描述】:

我想在我的 Mac 上运行我的 Python 3,但它只显示 2.7。

【问题讨论】:

  • 这是一个简单的配置中错误缩进的例子。如果您使用多个 Python 版本,我可以推荐build-python(显然,我有偏见)

标签: macos python-3.x atom-editor


【解决方案1】:

您没有为 Python 3 设置 Atom Runner

在您的config.cson 中,您将exception-reporting 包指向您的Python 3 二进制文件,但您的错误是Atom Runner 找不到它。你需要告诉 Atom Runner Python 3 在哪里。

'runner':
  'scopes':
    'python': '/Library/Frameworks/Python.framework/Versions/3.5/bin/python3'

有关更多信息,请参阅包目录中的 Atom Runner 列表。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-08
    • 2012-02-22
    • 2018-02-11
    • 1970-01-01
    • 2018-04-12
    • 2015-07-17
    • 2018-03-27
    相关资源
    最近更新 更多