I have used the command
pip install ursina
But when I import ursina i get this error message:
package_folder: /home/my/.local/lib/python3.10/site-packages/ursina
asset_folder: .
Traceback (most recent call last):
File "/home/my/.local/lib/python3.10/site-packages/ursina/window.py", line 48, in __init__
import Xlib
ModuleNotFoundError: No module named 'Xlib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/my/Desktop/python/main.py", line 1, in <module>
from ursina import *
File "/home/my/.local/lib/python3.10/site-packages/ursina/__init__.py", line 10, in <module>
from ursina.window import instance as window
File "/home/my/.local/lib/python3.10/site-packages/ursina/window.py", line 366, in <module>
instance = Window()
File "/home/my/.local/lib/python3.10/site-packages/ursina/window.py", line 58, in __init__
self.screen_resolution = [get_monitors()[0].width, get_monitors()[0].height]
NameError: name 'get_monitors' is not defined
I have uninstalled it and installed ursina multiple times but it still doesn't work.