Могу ли я установить mathutils на Python 3.14?Python

Программы на Python
Anonymous
Могу ли я установить mathutils на Python 3.14?

Сообщение Anonymous »

Mathutils — это библиотека Python, поддерживаемая ideaman42. Я использую его в более старых версиях Python и хочу обновить старый проект до более новой версии Python.
Когда я пытаюсь установить mathutils в версии 3.10 или более поздней, я получаю массу ошибок, например «Проблема с установкой python mathutils в Windows», которая, по-видимому, связана с тем, что проект не поддерживается для поддержки новых версий Python/pip.
Недавно проект был обновлен до «Обновление до Blender 5.1, поддержка». Python 3.14', однако, когда я пытаюсь установить mathutils на Python 3.14, я все равно получаю много ошибок:

Код: Выделить всё

Collecting mathutils
Using cached mathutils-5.1.0.tar.gz (350 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: mathutils
Building wheel for mathutils (pyproject.toml) ...  error
error: subprocess-exited-with-error

× Building wheel for mathutils (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
running bdist_wheel
running build
running build_ext
building 'mathutils' extension
creating build\temp.win-amd64-cpython-314\Release\src\blenlib\intern
creating build\temp.win-amd64-cpython-314\Release\src\generic
creating build\temp.win-amd64-cpython-314\Release\src\mathutils
creating build\temp.win-amd64-cpython-314\Release\src\stubs
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -Isrc/generic -I/usr/include/eigen3 -IC:\Dev\maps\.venv\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/blenlib/intern/BLI_assert.cc /Fobuild\temp.win-amd64-cpython-314\Release\src\blenlib\intern\BLI_assert.obj /J /std:c++20 -D__LITTLE_ENDIAN__
BLI_assert.cc
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -Isrc/generic -I/usr/include/eigen3 -IC:\Dev\maps\.venv\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/blenlib/intern/math_base.cc /Fobuild\temp.win-amd64-cpython-314\Release\src\blenlib\intern\math_base.obj /J /std:c++20 -D__LITTLE_ENDIAN__
math_base.cc
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -Isrc/generic -I/usr/include/eigen3 -IC:\Dev\maps\.venv\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/blenlib/intern/math_color.cc /Fobuild\temp.win-amd64-cpython-314\Release\src\blenlib\intern\math_color.obj /J /std:c++20 -D__LITTLE_ENDIAN__
math_color.cc
src/blenlib/intern/math_color.cc(214): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead.  To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
src/blenlib/intern/math_color.cc(220): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
src/blenlib/intern/math_color.cc(227): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
src/blenlib/intern/math_color.cc(232): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
src/blenlib/intern/math_color.cc(241): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
src/blenlib/intern/math_color.cc(251): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
src/blenlib/intern/math_color.cc(259): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
src/blenlib/intern/math_color.cc(266): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.  See online help for details.
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_math_matrix_types.hh(402): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_math_matrix_types.hh(402): note: the template instantiation context (the oldest one first) is
src/blenlib/intern/math_color.cc(946): note: see reference to class template instantiation 'blender::MatBase' being compiled
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_math_matrix_types.hh(397): note: while compiling class template member function 'blender::VecBase blender::operator *(const blender::MatBase &,const blender::VecBase &)'
src/blenlib/intern/math_color.cc(956): note: see the first reference to 'blender::operator *' in 'blender::math::chromatic_adaption_matrix'
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_math_matrix_types.hh(402): note: see reference to function template instantiation 'void blender::unroll(Fn)' being compiled
with
[
Fn=blender::*::
]
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_unroll.hh(28): note: see reference to function template instantiation 'void blender::unroll_impl(Fn,std::integer_sequence)' being compiled
with
[
Fn=blender::*::
]
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_unroll.hh(18): note: see reference to function template instantiation 'auto blender::*::::operator ()(_T1) const' being compiled
with
[
_T1=size_t
]
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_math_matrix_types.hh(402): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
src/blenlib\BLI_math_matrix.hh(1430): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
src/blenlib\BLI_math_matrix.hh(1430): note: the template instantiation context (the oldest one first) is
src/blenlib/intern/math_color.cc(960): note: see reference to function template instantiation 'MatT blender::math::from_scale(const blender::VecBase &)' being compiled
with
[
MatT=blender::float3x3
]
src/blenlib\BLI_math_matrix.hh(1429): note: see reference to function template instantiation 'void blender::unroll(Fn)' being compiled
with
[
Fn=blender::math::from_scale::
]
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_unroll.hh(28): note: see reference to function template instantiation 'void blender::unroll_impl(Fn,std::integer_sequence)' being compiled
with
[
Fn=blender::math::from_scale::
]
C:\Users\jphda\AppData\Local\Temp\pip-install-r1ymo4fj\mathutils_0870a8fa15604f1999d4e7986be940bb\src\blenlib\BLI_unroll.hh(18): note: see reference to function template instantiation 'auto blender::math::from_scale::::operator ()(_T1) const' being compiled
with
[
_T1=size_t
]
src/blenlib\BLI_math_matrix.hh(1430): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
src/blenlib\BLI_math_matrix.hh(1430): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe"  /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -Isrc/generic -I/usr/include/eigen3 -IC:\Dev\maps\.venv\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/blenlib/intern/math_geom.cc /Fobuild\temp.win-amd64-cpython-314\Release\src\blenlib\intern\math_geom.obj /J /std:c++20 -D__LITTLE_ENDIAN__
math_geom.cc
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -Isrc/generic -I/usr/include/eigen3 -IC:\Dev\maps\.venv\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\include -IC:\Users\jphda\AppData\Local\Python\pythoncore-3.14-64\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/blenlib/intern/math_matrix.cc /Fobuild\temp.win-amd64-cpython-314\Release\src\blenlib\intern\math_matrix.obj /J /std:c++20 -D__LITTLE_ENDIAN__
math_matrix.cc
src/blenlib/intern/math_matrix.cc(15): fatal error C1083: Cannot open include file: 'Eigen/Core': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mathutils
Failed to build mathutils

[notice] A new release of pip is available: 25.2 -> 26.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> mathutils
Мне неясно, связано ли это с тем, что обновление не завершено, я беру старую версию или делаю что-то еще неправильно.
Есть ли какой-нибудь способ установить mathutils на 3.14, не создавая болезненной зависимости для других людей, работающих над моим проектом?

Вернуться в «Python»