Closed guozan closed 1 year ago
你的M2安装成功了吗?我的M1一直提示模型未成功加载
I have this same problem in anoher project on my mac:
warning: Protobuf compiler version 23.3 doesn't match library version 4.23.3
Do you know of any fix?
如果使用homebrew
安装的protobuf,那么删除protobuf
然后安装protobuf@21
这个包,就不需要C++14
了
If you are using homebrew
, then remove protobuf
and install protobuf@21
instead. This package doesn't require C++14
.
版本不匹配的警告可以参考https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8574/diffs,手动修改本地CMake的配置文件即可解决
@andrewdavidmackenzie Visit the previous link, and manually edit the configuration file /opt/homebrew/share/cmake/Modules/FindProtobuf.cmake
(maybe).
这个问题,本质是安装onnx过程中出现的,最终解决方式,绕过protobuf的问题,直接搞定onnx
由于是在conda环境,提前把onnx装上,不要用pip安装;具体原因暂不明 conda install onnx
问题描述 / Problem Description 在安装依赖时报错,pip install -r requirements.txt
主要有两个: warning: Protobuf compiler version 23.3 doesn't match library version 4.23.3 error: "Protobuf only supports C++14 and newer."
环境信息 / Environment Information
附加信息 / Additional Information
Building wheels for collected packages: onnx Building wheel for onnx (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [619 lines of output] fatal: not a git repository (or any of the parent directories): .git /Users/youben/anaconda3/envs/chatglm/lib/python3.8/site-packages/setuptools/init.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!