Я загрузил SFML 2.3.2 с https://www.sfml-dev.org/download/sfml/2.3.2/ и у меня установлена Visual Studio 22.
После извлечения SFML-2.3.2 в C:\libraries я установил среду -Переменные:
Код: Выделить всё
SFML_DIR = C:\libraries\SFML-2.3.2
SFML_HEADERS = C:\libraries\SFML-2.3.2\include
SFML_LIBRARIES = C:\libraries\SFML-2.3.2\lib
Код: Выделить всё
C:\libraries\SFML-2.3.2\bin
Strong> с Cython-версией 3.0.10.
Когда я впервые попробовал:
Код: Выделить всё
pip install .
Код: Выделить всё
Error compiling Cython file:
------------------------------------------------------------
...
from libcpp.string cimport string
cimport time
^
------------------------------------------------------------
include\Includes\sfml\sfml.pxd:9:8: 'time.pxd' not found
Код: Выделить всё
from . cimport Time
Код: Выделить всё
Error compiling Cython file:
------------------------------------------------------------
...
from sfml cimport Time
cdef extern from "SFML/System.hpp" namespace "sf::Time":
cdef Time Zero
^
------------------------------------------------------------
include\Includes\sfml\Time.pxd:10:9: 'Time' is not a type identifier
Удалось ли кому-нибудь установить pySFML? Помощь будет очень признательна..!
Подробнее здесь: https://stackoverflow.com/questions/788 ... identifier