file-type

Fabgen:多语言C++绑定代码生成器

下载需积分: 9 | 158KB | 更新于2025-05-20 | 105 浏览量 | 0 下载量 举报 收藏
download 立即下载
FABGen是一个专门为Python、Lua和Go语言生成C++绑定的工具集,主要目的是为了与Harfang多媒体框架进行交互,同时它的诞生是为了替代SWIG这一传统的绑定生成工具。FABGen的设计和功能使得开发者能够更为便捷地将C++代码与不同的目标语言进行交互。 首先,让我们从标题中提炼几个核心知识点: 1. CPython 3.x:这是一个广泛使用的Python解释器版本,它完全兼容Python的官方标准,并且具备了新的语言特性。CPython实现了Python的全部标准库,并且通常被当做Python语言的默认实现。FABGen支持的是CPython 3.x版本,特别是3.x中的更新版本。 2. Lua 5.3:Lua是一个小巧轻量级的脚本语言,经常被嵌入到应用程序中,为应用程序提供可扩展性。Lua 5.3是Lua语言的其中一个主要版本,它引入了新的语法特性和内部改进,包括对浮点数和整数的优化等。FABGen支持将C++代码绑定到Lua 5.3,这样开发者就可以在Lua脚本中调用C++编写的库函数。 3. Go语言:Go语言,又称为Golang,是一种静态类型、编译型语言,由Google开发,它旨在结合C语言的执行效率与Python等动态语言的开发效率。FABGen支持生成Go语言的C++绑定代码,允许Go语言程序能够直接使用C++库。 标题中还提到了“C++绑定生成器”,意味着FABGen的职责是自动生成接口代码(绑定),这些代码允许不同语言编写的程序能够与C++代码进行通信和交互,无论是调用C++库函数还是将其他语言的函数暴露给C++。 接下来,我们详细解读描述中提到的知识点: 1. FABGen为一组Python脚本:这说明FABGen是用Python语言编写的,并且以脚本的形式来运行,这有助于使用Python的灵活特性来驱动生成绑定的过程。 2. 作为SWIG的替代品:SWIG是一个非常著名的工具,用于连接C和C++库与各种高级编程语言。FABGen是为了替代SWIG而编写的,意味着它提供了类似的功能,可能还包含了SWIG不支持或功能上更优的特性。 3. 由Emmanuel Julien和Thomas Simonnet编写和维护:这说明了FABGen的开发背景,两位作者可能因为Harfang多媒体框架项目的需求,设计并开发了FABGen。 4. GPLv3许可:GPLv3是一种广泛使用的开源许可证,它允许用户自由使用、修改和分发软件,但要求分发的修改版本必须同样开源,并且遵循GPLv3许可证的条款。FABGen使用GPLv3许可证,意味着它是一个开源项目。 5. 支持多种目标语言以及双向绑定:这一特性说明FABGen不仅限于将C++绑定到其他语言,也支持将其他语言的函数绑定到C++。双向绑定提高了灵活性,使得开发者可以按照项目需求,从任一方发起调用。 6. 提供用于嵌入的API:这说明FABGen生成的绑定代码不仅用于常规调用,还提供了一种方式,允许开发者将目标语言的代码直接嵌入到C++代码中,使得混合编程更加直观和高效。 最后,根据提供的【标签】以及【压缩包子文件的文件名称列表】: - 标签 "golang" 表明FABGen支持Go语言; - 标签 "lua" 表明FABGen支持Lua语言; - 标签 "binding" 表明FABGen是一个用于生成语言绑定的工具; - 标签 "cpython" 表明FABGen支持CPython解释器; - 标签 "swig" 表明FABGen与SWIG功能相似,可以作为其替代者; - 标签 "LuaPython" 是一个对Lua和Python的组合引用,可能指向FABGen可以生成支持Lua和Python语言绑定的能力。 【压缩包子文件的文件名称列表】中的 "FABGen-master" 暗示着文件可能包含FABGen的源代码或者相关文档,以及“master”表示这是主分支或者是主要的开发版本。 综上所述,FABGen是一个非常有价值的工具,它不仅简化了与多种语言的互操作性,还提供了更广泛的编程语言支持,对于需要将C++代码集成到多种编程环境中的开发者来说,它是一个非常有用的工具。

相关推荐

filetype

(base) [root@localhost py3.8]# pip install PyGObject==3.44.0 -i https://pypi.tuna.tsinghua.edu.cn/simple Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting PyGObject==3.44.0 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/07/73/a034fc1bcd6d402d6f72ff618c093f91ac6921f968cc19806b6a1b1b19c8/PyGObject-3.44.0.tar.gz (720 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting pycairo>=1.16.0 (from PyGObject==3.44.0) Using cached pycairo-1.26.1-cp38-cp38-linux_x86_64.whl Building wheels for collected packages: PyGObject Building wheel for PyGObject (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for PyGObject (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [44 lines of output] running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-38/pygtkcompat copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-cpython-38/pygtkcompat copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-cpython-38/pygtkcompat copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-cpython-38/pygtkcompat creating build/lib.linux-x86_64-cpython-38/gi copying gi/__init__.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/_constants.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/_error.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/_gtktemplate.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/_option.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/_ossighelper.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/_propertyhelper.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/_signalhelper.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/docstring.py -> build/lib.linux-x86_64-cpython-38/gi copying gi/importer.py -> build/lib

filetype

pip install cyvcf2 Collecting cyvcf2 Using cached cyvcf2-0.31.1.tar.gz (1.3 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting numpy>=1.16.0 (from cyvcf2) Using cached numpy-2.2.3-cp312-cp312-win_amd64.whl.metadata (60 kB) Collecting coloredlogs (from cyvcf2) Using cached coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB) Collecting click (from cyvcf2) Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB) Collecting colorama (from click->cyvcf2) Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Collecting humanfriendly>=9.1 (from coloredlogs->cyvcf2) Using cached humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB) Collecting pyreadline3 (from humanfriendly>=9.1->coloredlogs->cyvcf2) Using cached pyreadline3-3.5.4-py3-none-any.whl.metadata (4.7 kB) Using cached numpy-2.2.3-cp312-cp312-win_amd64.whl (12.6 MB) Using cached click-8.1.8-py3-none-any.whl (98 kB) Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB) Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB) Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB) Using cached pyreadline3-3.5.4-py3-none-any.whl (83 kB) Building wheels for collected packages: cyvcf2 Building wheel for cyvcf2 (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for cyvcf2 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [84 lines of output] running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-312\cyvcf2 copying cyvcf2\cli.py -> build\lib.win-amd64-cpython-312\cyvcf2 copying cyvcf2\__init__.py -> build\lib.win-amd64-cpython-312\cyvcf2 copying cyvcf2\__main__.py -> build\lib.win-amd64-cpython-312\cyvcf2 running egg_info writing cyvcf2.egg-info\PKG-INFO writing dependency_links to cyvcf2.egg-info\dependency_links.txt writing e

filetype
filetype

Windows PowerShell 版权所有(C) Microsoft Corporation。保留所有权利。 安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows PS F:\pythonten\project> cl 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.44.35209 版 版权所有(C) Microsoft Corporation。保留所有权利。 用法: cl [ 选项... ] 文件名... [ /link 链接选项... ] PS F:\pythonten\project> pip install mnnpy -i https://pypi.tuna.tsinghua.edu.cn/simple/ Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/ Collecting mnnpy Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c2/6e/e8f963203e552d80a04adf80b19ecb248fa949b3db7a6fc935a2f49e8454/mnnpy-0.1.9.5.tar.gz (117 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy in f:\pythonten\python310\lib\site-packages (from mnnpy) (1.26.3) Requirement already satisfied: scipy in f:\pythonten\python310\lib\site-packages (from mnnpy) (1.12.0) Requirement already satisfied: anndata in f:\pythonten\python310\lib\site-packages (from mnnpy) (0.9.2) Requirement already satisfied: pandas in f:\pythonten\python310\lib\site-packages (from mnnpy) (2.2.0) Requirement already satisfied: numba in f:\pythonten\python310\lib\site-packages (from mnnpy) (0.58.1) Requirement already satisfied: h5py>=3 in f:\pythonten\python310\lib\site-packages (from anndata->mnnpy) (3.10.0) Requirement already satisfied: natsort in f:\pythonten\python310\lib\site-packages (from anndata->mnnpy) (8.4.0) Requirement already satisfied: packaging>=20 in f:\pythonten\python310\lib\site-packages (from anndata->mnnpy) (23.2) Requirement already satisfied: python-dateutil>=2.8.2 in f:\pythonten\python310\lib\site-packages (from pandas->mnnpy) (2.8.2) Requirement already satisfied: pytz>=2020.1 in f:\pythonten\python310\lib\site-packages (from pandas->mnnpy) (2023.3.post1) Requirement already satisfied: tzdata>=2022.7 in f:\pythonten\python310\lib\site-packages (from pandas->mnnpy) (2023.4) Requirement already satisfied: six>=1.5 in f:\pythonten\python310\lib\site-packages (from python-dateutil>=2.8.2->pandas->mnnpy) (1.16.0) Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in f:\pythonten\python310\lib\site-packages (from numba->mnnpy) (0.41.1) Building wheels for collected packages: mnnpy Building wheel for mnnpy (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for mnnpy (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [73 lines of output] C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-2jqu8z5o\overlay\Lib\site-packages\setuptools\dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'python-tag' in 'bdist_wheel' (setup.cfg), please use the underscore name 'python_tag' instead. !! ******************************************************************************** Usage of dash-separated 'python-tag' will not be supported in future versions. Please use the underscore name 'python_tag' instead. (Affected: mnnpy). By 2026-Mar-03, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self._enforce_underscore(opt, section) C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-2jqu8z5o\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() Building with c. running bdist_wheel running build running build_py file irlb.py (for module irlb) not found file mnn.py (for module mnn) not found file utils.py (for module utils) not found creating build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\irlb.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\mnn.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\settings.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\utils.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\__init__.py -> build\lib.win-amd64-cpython-310\mnnpy file irlb.py (for module irlb) not found file mnn.py (for module mnn) not found file utils.py (for module utils) not found running build_ext building 'mnnpy._utils' extension creating build\temp.win-amd64-cpython-310\Release\mnnpy "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IF:\pythonten\python310\include -IF:\pythonten\python310 \Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\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" /Tcmnnpy/_utils.c /Fobuild\temp.win-amd64-cpython-310\Release\mnnpy\_utils.obj -O2 -ffast-math -march=native -fopenmp cl: 命令行 warning D9002 :忽略未知选项“-ffast-math” cl: 命令行 warning D9002 :忽略未知选项“-march=native” cl: 命令行 warning D9002 :忽略未知选项“-fopenmp” _utils.c mnnpy/_utils.c(2117): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 mnnpy/_utils.c(2359): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 mnnpy/_utils.c(2576): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 mnnpy/_utils.c(16475): error C2105: “++”需要左值 mnnpy/_utils.c(16477): error C2105: “--”需要左值 mnnpy/_utils.c(16764): error C2105: “++”需要左值 mnnpy/_utils.c(16766): error C2105: “--”需要左值 mnnpy/_utils.c(17003): error C2105: “++”需要左值 mnnpy/_utils.c(17005): error C2105: “--”需要左值 mnnpy/_utils.c(17615): warning C4996: 'PyEval_InitThreads': deprecated in 3.9 mnnpy/_utils.c(17674): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(17679): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(17694): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(17707): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(19372): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3 error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.44.35207\\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 mnnpy Failed to build mnnpy ERROR: Failed to build installable wheels for some pyproject.toml based projects (mnnpy) PS F:\pythonten\project> pip install mnnpy Collecting mnnpy Using cached mnnpy-0.1.9.5.tar.gz (117 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy in f:\pythonten\python310\lib\site-packages (from mnnpy) (1.26.3) Requirement already satisfied: scipy in f:\pythonten\python310\lib\site-packages (from mnnpy) (1.12.0) Requirement already satisfied: anndata in f:\pythonten\python310\lib\site-packages (from mnnpy) (0.9.2) Requirement already satisfied: pandas in f:\pythonten\python310\lib\site-packages (from mnnpy) (2.2.0) Requirement already satisfied: numba in f:\pythonten\python310\lib\site-packages (from mnnpy) (0.58.1) Requirement already satisfied: h5py>=3 in f:\pythonten\python310\lib\site-packages (from anndata->mnnpy) (3.10.0) Requirement already satisfied: natsort in f:\pythonten\python310\lib\site-packages (from anndata->mnnpy) (8.4.0) Requirement already satisfied: packaging>=20 in f:\pythonten\python310\lib\site-packages (from anndata->mnnpy) (23.2) Requirement already satisfied: python-dateutil>=2.8.2 in f:\pythonten\python310\lib\site-packages (from pandas->mnnpy) (2.8.2) Requirement already satisfied: pytz>=2020.1 in f:\pythonten\python310\lib\site-packages (from pandas->mnnpy) (2023.3.post1) Requirement already satisfied: tzdata>=2022.7 in f:\pythonten\python310\lib\site-packages (from pandas->mnnpy) (2023.4) Requirement already satisfied: six>=1.5 in f:\pythonten\python310\lib\site-packages (from python-dateutil>=2.8.2->pandas->mnnpy) (1.16.0) Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in f:\pythonten\python310\lib\site-packages (from numba->mnnpy) (0.41.1) Building wheels for collected packages: mnnpy Building wheel for mnnpy (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for mnnpy (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [73 lines of output] C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-sra4z_m5\overlay\Lib\site-packages\setuptools\dist.py:599: SetuptoolsDeprecationWarning: Invalid dash-separated key 'python-tag' in 'bdist_wheel' (setup.cfg), please use the underscore name 'python_tag' instead. !! ******************************************************************************** Usage of dash-separated 'python-tag' will not be supported in future versions. Please use the underscore name 'python_tag' instead. (Affected: mnnpy). By 2026-Mar-03, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self._enforce_underscore(opt, section) C:\Users\Lenovo\AppData\Local\Temp\pip-build-env-sra4z_m5\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() Building with c. running bdist_wheel running build running build_py file irlb.py (for module irlb) not found file mnn.py (for module mnn) not found file utils.py (for module utils) not found creating build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\irlb.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\mnn.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\settings.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\utils.py -> build\lib.win-amd64-cpython-310\mnnpy copying mnnpy\__init__.py -> build\lib.win-amd64-cpython-310\mnnpy file irlb.py (for module irlb) not found file mnn.py (for module mnn) not found file utils.py (for module utils) not found running build_ext building 'mnnpy._utils' extension creating build\temp.win-amd64-cpython-310\Release\mnnpy "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IF:\pythonten\python310\include -IF:\pythonten\python310 \Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\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" /Tcmnnpy/_utils.c /Fobuild\temp.win-amd64-cpython-310\Release\mnnpy\_utils.obj -O2 -ffast-math -march=native -fopenmp cl: 命令行 warning D9002 :忽略未知选项“-ffast-math” cl: 命令行 warning D9002 :忽略未知选项“-march=native” cl: 命令行 warning D9002 :忽略未知选项“-fopenmp” _utils.c mnnpy/_utils.c(2117): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 mnnpy/_utils.c(2359): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 mnnpy/_utils.c(2576): warning C4244: “=”: 从“double”转换到“float”,可能丢失数据 mnnpy/_utils.c(16475): error C2105: “++”需要左值 mnnpy/_utils.c(16477): error C2105: “--”需要左值 mnnpy/_utils.c(16764): error C2105: “++”需要左值 mnnpy/_utils.c(16766): error C2105: “--”需要左值 mnnpy/_utils.c(17003): error C2105: “++”需要左值 mnnpy/_utils.c(17005): error C2105: “--”需要左值 mnnpy/_utils.c(17615): warning C4996: 'PyEval_InitThreads': deprecated in 3.9 mnnpy/_utils.c(17674): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(17679): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(17694): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(17707): error C2039: "tp_print": 不是 "_typeobject" 的成员 F:\pythonten\python310\include\cpython/object.h(191): note: 参见“_typeobject”的声明 mnnpy/_utils.c(19372): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3 error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.44.35207\\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 mnnpy Failed to build mnnpy ERROR: Failed to build installable wheels for some pyproject.toml based projects (mnnpy)

MachineryLy
  • 粉丝: 43
上传资源 快速赚钱