Top.Mail.Ru
Ответы

4 раза переустановил pygame, 2 раза пайтон и все равно вылазит это

Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "c:\Users\zxc\vs code\main.py", line 5, in <module>
import pygame_gui
File "C:\Users\zxc\vs code\env\Lib\site-packages\pygame_gui\__init__.py", line 7, in <module>
from pygame_gui.ui_manager import UIManager
File "C:\Users\zxc\vs code\env\Lib\site-packages\pygame_gui\ui_manager.py", line 8, in <module>
from pygame_gui.core.interfaces import IUIManagerInterface
File "C:\Users\zxc\vs code\env\Lib\site-packages\pygame_gui\core\__init__.py", line 1, in <module>
from pygame_gui.core.ui_appearance_theme import UIAppearanceTheme
File "C:\Users\zxc\vs code\env\Lib\site-packages\pygame_gui\core\ui_appearance_theme.py", line 11, in <module>
from pygame_gui.core.interfaces.gui_font_interface import IGUIFontInterface
File "C:\Users\zxc\vs code\env\Lib\site-packages\pygame_gui\core\interfaces\__init__.py", line 2, in <module>
from pygame_gui.core.interfaces.font_dictionary_interface import IUIFontDictionaryInterface
File "C:\Users\zxc\vs code\env\Lib\site-packages\pygame_gui\core\interfaces\font_dictionary_interface.py", line 2, in <module>
from pygame import DIRECTION_LTR
ImportError: cannot import name 'DIRECTION_LTR' from 'pygame' (C:\Users\zxc\vs code\env\Lib\site-packages\pygame\__init__.py)

Я не знаю что делать... Может вы поможете?

По дате
По рейтингу
Аватар пользователя
Просветленный
2мес

У тебя вся проблема в том что ты не той библитекой пользуешься.

1
 import pygame_gui  

Правильные библиотеки pygame и pygame-gui
Лучше используй и изучай pygame больше

подробнее см.доментацию
https://pypi.org/project/pygame-gui
и
https://pypi.org/project/pygame/

Аватар пользователя
Профи
2мес

Пейтон какая же ты сволочь