[英]ursina window not opening up on mac OS big sur
I am starting Ursina out, and I opened the terminal and did pip3 install ursina, and it worked, and now in VS code im running the basic code but no windows are popping up.我正在启动 Ursina,我打开终端并 pip3 install ursina,它工作了,现在在 VS 代码中运行基本代码,但没有 windows 弹出。 I am on mac OS Big Sur.
我在 mac OS Big Sur 上。 This is my code.
这是我的代码。
from ursina import *
app = Ursina()
test_square = Entity(model = 'circle', color = color.red)
app.run()
As per the documents, Ursina doesn't properly work on Mac but I had a mac and I tried to open the window and it worked, you can try reinstalling your IDE and Ursina, if it doesn't work, there's some problem in your MacOS.根据文件,Ursina 在 Mac 上不能正常工作,但我有一个 mac,我尝试打开 window 并且它工作,你可以尝试重新安装你的 IDE 和 Ursina,如果它不工作,你的有一些问题苹果系统。
According to the official docs , Ursina
works best on Windows and Linux.根据官方文档,
Ursina
在 Windows 和 Linux 上效果最好。
Platforms平台
• Windows
• Linux
This is weird however, because I ran the code on Mac and got the window properly.然而,这很奇怪,因为我在 Mac 上运行代码并正确获取了 window。 Do check if any errors are being thrown, and also check make sure your
launch.json
file looks something like this:请检查是否有任何错误被抛出,并确保您的
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"
]
},
If that you've checked these things, it is likely a problem with your OS.如果您已经检查了这些内容,则可能是您的操作系统存在问题。
Try using a virtual machine, it will work.尝试使用虚拟机,它会工作。 Ursina only supports Window's and Linux, but a virtual machine should do.
Ursina 仅支持 Window 和 Linux,但虚拟机应该可以。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.