繁体   English   中英

ursina window 未在 mac OS big sur 上打开

[英]ursina window not opening up on mac OS big sur

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

from ursina import *

app = Ursina()

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

app.run()

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

根据官方文档Ursina在 Windows 和 Linux 上效果最好。


平台

     • Windows
     • Linux

然而,这很奇怪,因为我在 Mac 上运行代码并正确获取了 window。 请检查是否有任何错误被抛出,并确保您的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"
        ]
    },

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

尝试使用虚拟机,它会工作。 Ursina 仅支持 Window 和 Linux,但虚拟机应该可以。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM