【问题标题】:ursina window not opening up on mac OS big surursina 窗口未在 mac OS big sur 上打开
【发布时间】:2022-01-01 15:04:28
【问题描述】:

我正在启动 Ursina,我打开终端并 pip3 install ursina,它工作了,现在在 VS 代码中运行基本代码,但没有弹出窗口。我在 mac OS Big Sur 上。这是我的代码。

from ursina import *

app = Ursina()

test_square = Entity(model = 'circle', color = color.red)

app.run()

【问题讨论】:

    标签: python ursina


    【解决方案1】:

    根据官方docs 的说法,Ursina 在 Windows 和 Linux 上效果最好。


    平台

         • Windows
         • Linux
    

    这很奇怪,因为我在 Mac 上运行代码并正确获取了窗口。请检查是否有任何错误被抛出,并确保您的 launch.json 文件看起来像这样:

    {
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "C:/Users/Sanghun/AppData/Local/Programs/Python/Python35-32/python.exe",
            "program": "${file}",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },
    

    如果您已经检查了这些内容,则可能是您的操作系统存在问题。

    【讨论】:

    【解决方案2】:

    根据文档,Ursina 在 Mac 上不能正常工作,但我有一个 mac,我尝试打开窗口并且它工作,你可以尝试重新安装你的 IDE 和 Ursina,如果它不工作,有一些MacOS 中的问题。

    【讨论】:

      猜你喜欢
      • 2023-04-03
      • 2021-08-17
      • 2021-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-07
      • 2021-06-21
      • 1970-01-01
      相关资源
      最近更新 更多