【问题标题】:How can I run runsnakerun on Mac OS X inside a conda environment?如何在 conda 环境中在 Mac OS X 上运行 runsnakerun?
【发布时间】:2015-08-26 22:38:19
【问题描述】:

我已经创建了一个 conda 环境,因此我可以在我的 Mac 上使用 runsnakerun,如下所示:

conda create -n runsnake wxPython
source activate runsnake
pip install runsnakerun

但是,当我现在尝试使用 runnake 时,我得到:

$ runsnake
This program needs access to the screen.
Please run with a Framework build of python, and only when you are
logged in on the main display of your Mac.

如何让 runnake 工作?

【问题讨论】:

    标签: macos wxpython anaconda conda


    【解决方案1】:

    问题是 conda 的 python 不是 Mac 上的“框架 python”,他们的决定是你必须使用 pythonw 代替。不幸的是,pip 使用 python 而不是 pythonw 构建入口点脚本,更糟糕的是,RunSnakeRun 会在 64 位 Mac 上以 32 位模式启动自己的可怕子进程。

    结果是我能想到的启动runsnake 的唯一解决方法如下:

    VERSIONER_PYTHON_PREFER_32_BIT=yes pythonw `which runsnake32`
    

    我实际上并不确定是否需要该环境变量,但以上内容确实完成了入口点似乎正在尝试做的事情,并且至少启动了 RunSnakeRun gui。

    【讨论】:

      猜你喜欢
      • 2014-01-24
      • 2011-10-10
      • 1970-01-01
      • 2014-11-08
      • 1970-01-01
      • 1970-01-01
      • 2015-07-07
      • 1970-01-01
      • 2014-05-15
      相关资源
      最近更新 更多