简体   繁体   English

ursina window 未在 mac OS big sur 上打开

[英]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.

相关问题 Mac OS Big Sur (MacOS 11) 上的 Jython - Jython on Mac OS Big Sur (MacOS 11) 使用 pip 在 Mac OS Big Sur 上安装 Tensorflow - Installing Tensorflow on Mac OS Big Sur with pip 在 Mac OS Big Sur 上使用 pyenv 安装 python 3.6 时出现问题 - Problems installing python 3.6 with pyenv on Mac OS Big Sur psycopg2 与 postgres14 Mac OS Big Sur 不兼容 - psycopg2 not compatible with postgres14 Mac OS Big Sur Spyder 版本 4.2.3 在 Mac、OS Big Sur 上滞后 - Spyder version 4.2.3 lagging on Mac, OS Big Sur 如何在没有 Anaconda 的 Mac OS(Big Sur、Catalina、Mojave)上安装 TensorFlow 2.X? - How to install TensorFlow 2.X on Mac OS (Big Sur, Catalina, Mojave) without Anaconda? Mac OS Big Sur 更新导致 django 1.11 的 pip 安装要求与 cffi 错误 - Mac OS Big Sur update causing pip install requirements for django 1.11 with cffi error 是否有关于 PyQt 库在 Mac OS Big Sur 中不起作用的解决方案? - Is there any solution regarding to PyQt library doesn't work in Mac OS Big Sur? 在 mac (Big Sur) 上导入模块的问题,以及 package 的 sys.executable 和位置不匹配? - Issues with importing modules on mac (Big Sur), and sys.executable and location of package not matching up? Python 3.9.1、Mac Big Sur、Numpy 和 Essentia - Python 3.9.1, Mac Big Sur, Numpy and Essentia
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM